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 the difference between protected and default access.
What are advantages of exception handling in java?
Does a function need a return?
Which class is the superclass for all the classes?
What is jit compiler in java?
Is a class subclass of itself?
What’s the difference between constructors and other methods?
Does chrome use java?
Write a java program to generate fibonacci series ?
How many bits is a char?
What is unicode with example?
What is the argument in java?
What comes to mind when someone mentions a shallow copy in java?
How do you identify independent and dependent variables?
What is difference between overloading and overriding in java?