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
Convert Binary tree to linked list.
What is the purpose of a parameter?
What do you mean by ternary operator in java?
Do extraneous variables affect validity?
what invokes a threads run() method? : Java thread
Can we declare register variable as global?
What is the synonym of framework?
Can an interface have a constructor?
How many times finalize method will be invoked? Who invokes finalize() method in java?
explain autoboxing in java?
What are the Main functions of Java?
What are the different types of methodologies?
How can the checkbox class be used to create a radio button?
How are destructors defined in java?
Difference between error and exception