Answer Posted / prabir kumar
1) it is a automatic memory management utility run by JVM.
2) the JVM cleaning the objects from the memory which are
no longer being referenced.
3) the object that is not instantiate or containl null is
also applicable for garbage collection.
3) explicitly running garbage collector is very expensive.
4) to run the garbage collect call the static method of
System class e.g. System.gc();
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are features of java?
Does java arraylist maintain insertion order?
How can an object be unreferenced?
What are the differences between this and super keyword?
Explain numeric promotion?
What is an exception in java?
Which is bigger float or double?
What is string args [] in java?
What is the applet security manager, and what does it provide?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
what is daemon thread and which method is used to create the daemon thread? : Java thread
What are basic data types?
When should I use singleton?
What is a class instance variable?
What does regex mean?