how exactly garbage collection take place?

Answer Posted / vinay

Another way to call garbage collector :-
Runtime rt = Runtime.getRuntime();
rt.gc();

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of static methods and variables?

529


What are the restriction imposed on a static method or a static block of code?

591


What is difference between static and final?

556


What is the main use of generics in java?

508


What are loops in java? What are three types of loops?

547






How do you create a sop?

526


Is map ordered in java?

529


How do listeners work?

503


What is the difference between the paint() and repaint() methods in java programming?

621


What is the difference between super class & sub class?

562


Is there a sort function in java?

575


What is the difference between a loader and a compiler?

524


How transient variable is different from volatile variable?

558


What is lazy programming?

561


What is formatted output?

509