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
How database connectivity in XML is achieved?
Explain the advantages and disadvantages of detached objects.
What is ripple effect?
Why are my checkboxes not being set from on to off?
Is the ternary operator written x : y ? Z or x ? Y : z ?
Why do I get a duplicate name error when loading a jar file?
Do you think that java should have had pointers?
What is the difference between the string and stringbuffer classes?
What are the steps to write p-to-p model application?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
Explain about local interfaces.
What is the RMI and Socket?
How to pass parameters in RMI?
What are the different methods of identifying an object?
Write a singleton program?