What is garbage collection in Java, and how can it be used ?
Answer Posted / dsr
when ever object scope is over at that the object memory
removed.This is nown as garbageCollection.
| Is This Answer Correct ? | 19 Yes | 11 No |
Post New Answer View All Answers
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What is java regex?
What are inner classes or non static nested classes in java?
Explain when classnotfoundexception will be raised ?
What does java stand for?
How do you escape in java?
What is the memory leak in java?
How does compareto work in java?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
Is boolean a wrapper class in java?
Define a package.
Explain the Propertie sof class?
What is difference overloading and overriding?
What is numeric data type?
Why string is immutable or final in java