What is garbage collection in Java, and how can it be used ?
Answer Posted / sangeetha
when we remove the object that it will be stored particular
memory space these are known as garbage collection.
It is finalize method is used in the garbage collection.
| Is This Answer Correct ? | 32 Yes | 20 No |
Post New Answer View All Answers
What is equlas() and hashcode() contract in java? Where does it used?
Can we create a constructor in abstract class?
What are the important features of Java 9 release?
Is array size fixed in java?
What is array length in java?
Why do we use predicate in java?
Where is the singleton class used?
What are the types of methods in java?
Is string passed by reference in java?
When throws keyword is used?
Is arraylist a class in java?
What is the main purpose of java?
How to add menushortcut to menu item?
Can java arraylist hold different types?
What is the difference between static and non-static variables in java programming?