Answer Posted / prabir kumar
1) it is a automatic memory management utility run by JVM.
2) the JVM cleaning the objects from the memory which are
no longer being referenced.
3) the object that is not instantiate or containl null is
also applicable for garbage collection.
3) explicitly running garbage collector is very expensive.
4) to run the garbage collect call the static method of
System class e.g. System.gc();
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is super keyword explain with example?
What is ctrl m character?
What is difference between == equals () and compareto () method?
What is instance synchronization?
What is the difference between length and size in java?
Is .net better than java?
What is java dot?
What is java and why do we need it? Explain
What is meant by polymorphism?
What is array in java?
Which methods cannot be overridden in java?
Why can't you declare a class as protected?
What is function declaration?
How do you make a thread in java?
What are the 6 functions?