Why we can not force Garbage Collection?

Answer Posted / neeraj

Hi Ramesh
Sir Garbage collector is a thread and nothing can
pridict about the excecution time of a thread at runtime.
System.gc(); is a method to start that non user thread
explicitly.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the common usage of serialization?

565


can java object be locked down for exclusive use by a given thread? : Java thread

522


How to instantiate static nested classes in java?

554


What is bubble sort in java?

610


Can we use string in switch case in java?

563






What is a variable declaration?

515


What is the difference between assignment and initialization?

546


Write code of any action class?

540


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

8609


What is a heavyweight component?

537


Can you call a method in a method?

518


What is java autoboxing?

528


How long will it take to learn java?

496


What is identifier in java?

546


Explain the difference between an object-oriented programming language and object-based programming language?

541