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
Difference between operator overloading and function overloading
Can an interface implement another interface?
Which package has light weight components in java programming?
What is core java called?
If an object is garbage collected, can it become reachable again?
What are java packages? What is the significance of packages?
Can we convert integer to string in java?
How many inner classes can a class have?
How many types of the indexof method are there for strings?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
What is r in java?
Explain the difference between static and dynamic binding in java?
Why do we use threads in java?
Why destructor is not used in java?
What is private protected in java?