How to send a request to garbage collector?
Answers were Sorted based on User's Feedback
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 |
Answer / viiraj
Garbage collection is implicitly accomplished with
termination of instance.
Wee dont need to explicitly request.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / manikandan [ gtec,vellore ]
we can't force a garbage collection.it automatically runs
when system runs out of memory.
| Is This Answer Correct ? | 2 Yes | 1 No |
What are the types of data passing mechanisams under JMS specification?
Why are my checkboxes not being set from on to off?
Why does most servlets extend HttpServlet?
What is servlet preinitialization?
What is the relationship between local interfaces and container-managed relationships?
What is a compilation unit?
which type of objects reference will be given to client?
Is a class a subclass of itself?
Give me simple example of hibernate caching and explain the details of caching????? thanks in adv.
What are the different approaches to represent an inheritance hierarchy?
whats is mean by tiles in struts
What are JTA/JTS and how they used by client?