Why we can not force Garbage Collection?

Answer Posted / vineet verma[birlasoft]

garbage collection is a independent thread in memory.JVM
set the priorty of this thread.system.gc() just request the
JVM to run garbage collection.its up to JVM wether to set
priorty and when..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is bigger double or float?

504


What is anagram of a string?

496


What is the difference between throw and throws in java?

529


What is equals method in java?

510


What is an class?

568






What do you understand by the term wrapper classes?

522


What data type is true or false?

549


What is api in java?

507


Is java programming easy?

515


Does java allow overriding static methods ?

602


Explain about doubly linked list

596


What are Normalization Rules? Define Normalization?

529


What happens when heap memory is full?

508


Why is java logo a cup of coffee?

596


What are different access specifiers in java?

537