Answer Posted / nilesh bhil
Garbage collector is automatically called by JVM.
But can make the request by calling gc() method on System class as follows.
System.gc();
Note that we are making only request Garbage Collector may
called or may not called.
Garbage Collector is automatically called at two conditions.
1)When CPU is ideal.
2)When huge amount of memory is required.
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
What is mdb and what is the special feature of that?
Explain the difference between object state and behavior?
Name three component subclasses that support painting?
Explain what is synchronization?
What state does a thread enter when it terminates its processing?
whats is statement and procedure
What is difference between object state and behavior?
Difference between loadclass and class.forname?
What is jboss?
What is the purpose of the notify() method?
What are the different types of exception?
What is the difference between RMI registry and OS Agent?
What method is invoked to cause an object to begin executing as a separate thread?
How are commas used in the intialization and iteration parts of a for statement?