Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Memory management in java

  Asked By: Kenneth    Date: Jan 18    Category: Java    Views: 941
  

how memory management will be done in java...............

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Riley-jack Johnson     Answered 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.

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




Tagged: