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
What access modifiers can be used for variables?
Is singleton class thread safe?
Explain thread life cycle in java?
Is void a wrapper class?
What are desktop procedures?
Tell some latest versions in JAVA related areas?
What is gui programming?
How do you sort arraylist in descending order?
Is null a string or object in java?
How to make a non daemon thread as daemon?
Tell me about your ability to work under pressure
Is a char always 1 byte?
What does java stand for?
What is independent and dependent variables in research?
How to perform linear search in java?