garbate collector(GC)?

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


Please Help Members By Posting Answers For Below Questions

What are features of java?

555


Does java arraylist maintain insertion order?

541


How can an object be unreferenced?

536


What are the differences between this and super keyword?

521


Explain numeric promotion?

589






What is an exception in java?

638


Which is bigger float or double?

511


What is string args [] in java?

533


What is the applet security manager, and what does it provide?

530


How we can skip finally block of exception even if some exception occurs in the exception block in java?

508


what is daemon thread and which method is used to create the daemon thread? : Java thread

518


What are basic data types?

552


When should I use singleton?

514


What is a class instance variable?

612


What does regex mean?

557