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
Why does the option tag render selected=selected instead of just selected?
Explain what is synchronization?
Which container method is used to cause a container to be laid out and redisplayed?
what are the advantages of JTA over JTS?
What is the difference between system.out ,system.err and system.in?
What is the difference between the string and stringbuffer classes?
what is a portable component?
What are the diff types of exception?
What is the argument type of a programs main() method?
What happens when a thread cannot acquire a lock on an object?
What is a class loader?
What are the different types of exception?
wahts is mean by dynavalidatorform in struts/
What are the sequence of steps to write pub or sub model kind of application?
What is the highest-level event class of the event-delegation model?