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 is serialization and de-serialization ?
Difference between hashmap and hashtable?
What is JNI?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
whats is mean by tiles in struts
What is an applet?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
What is deadlock?
Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.
Where can I ask questions and make suggestions about seam?
What state a thread enters, When it blocks on I/O?
Can I use javascript to submit a form?