What is garbage collection in Java, and how can it be used ?
Answer Posted / veer
When an object has of no use in a program then it has to be
discarded to free the occupied space by it so that other
object can fill the space.That is what Garbaghe collection
is.
Is This Answer Correct ? | 42 Yes | 12 No |
Post New Answer View All Answers
Explain the importance of finally block in java?
What is difference between call by value and call by reference?
How will you communicate between two applets?
How many types of memory areas are allocated by jvm?
What is a double vs float?
Is null a string?
What are the loops in java?
How many functional interfaces does java 8 have?
What is the purpose of garbage collection in java?
What are the approaches that you will follow for making a program very efficient?
What is the base class of all exception classes?
What are white spaces in java?
What is your platform’s default character encoding?
What does s mean in regex?
How do you remove an element from an arraylist in java?