Answer Posted / anjum rehbar khan
Yes we can send arequest to garbage collection by writing a
simple line of code:
System.gc();
OR
Runtime.gc();
But it is simply a request not a order to JVM
because Garbage collection is JVM dependent
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Name some classes present in java.util.regex package.
Are registers volatile?
How can a gui component handle its own events in java programming?
How do I remove a character from a string in java?
What is the difference between an if statement and a switch statement?
Define packages in java?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is pass by value?
what is the difference between preemptive scheduling and time slicing? : Java thread
When does a class need a virtual destructor?
Can we override private methods?
When should I use stringbuffer?
What is output buffer?
Is null in java?
How do you calculate roots in java?