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
If you are given the name of the function at run time how will you invoke the function?
What is array pointers ?
What is meant by nested loop?
What is command line argument in java?
Can a class be final?
How are the elements of a gridbaglayout organized?
What is the console in java?
What is array list in java?
How does enum work in java?
What is var keyword ?
What is field name?
What is the finalize method do?
What is a function in programming?
What is formatted output?
How to provide security in java