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 is the difference between array list and vector in java?
how to create constants in java?
What does string intern() method do?
What is double in java?
can any body body expalin best definitions & best real time exaples for opps concepts.
which pattern is default in scanner package?
What is native code?
Can inner class extend any class?
What are the java ide’s?
How many bytes are there?
How does the java compiler work?
What are the different ways of creating thread?
Which programming language is best in future?
What do you mean by platform independence of Java?
What are different types of inner classes ?