Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kenneth Bennett   on Jan 18 In Java Category.

  
Question Answered By: Riley-jack Johnson   on Jan 18

When you set a object to null it goes to deletion queue, the runtime has a
Garbage Colector that clean-up the memory  periodically.

If you want to force the Garbage Collection, you can use System.gc() method.

Share: 

 
 
Didn't find what you were looking for? Find more on Memory management in java Or get search suggestion and latest updates.


Tagged: