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
Explain scope or life time of local variables in java?
Where is core java used?
How do you identify independent and dependent variables?
Can an interface extend a class?
Can we increase array size dynamically in java?
What are three types of loops in java?
Why is a singleton bad?
How infinite loop is declared?
What is a nested structure?
What is main difference between variable and constant?
What are keyboard events?
What do you mean by scope of variable?
What is a function easy definition?
What is the purpose of tostring() method in java?
What will be the initial value of an object reference which is defined as an instance variable?