What is garbage collection in Java, and how can it be used ?
Answer Posted / samji
When a Java object becomes unreachable to the program, then
it is subjected to garbage collection. The main use of
garbage collection is to identify and discard objects that
are no longer needed by a program so that their resources
can be reclaimed and reused.
Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What is static keyword in java?
Why do we override tostring method in java?
How can we make a class singleton?
Give an example of call be reference significance.
Where and how can you use a private constructor?
What is difference between string and new string?
What do you understand by synchronization?
How to sort an array from smallest to largest java?
What is difference between word and integer?
How to change value in arraylist java?
What is polymorphism and what are the types of it?
What is the difference between I ++ and ++ I in java?
Is null keyword in java?
How are this() and super() used with constructors in java programming?
what is a working thread? : Java thread