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 would you reatach detached objects to a session when the same object has already been loaded into the session?
What is a policy?
How will you pass parameters in RMI? Why do you serialize?
Write a program to show synchronization?
What is table mutation and how do you avoid it?
What is scalable, portability in the view of J2EE?
What is glasgow?
What is a modular application? What does module-relative mean?
What is Remote Server?
Are we allowed to change the transaction isolation property in middle of a transaction?
What is bean? Where can it be used?
Can constructors be synchronized in java?
How to pass parameters in RMI?
What is abstract schema?
What is local interface. How values will be passed?