What is garbage collection in Java, and how can it be used ?
Answer Posted / janet
When an object is no longer referred to by any
variable,java automatically reclaims memory used by that
object.This is known as garbage collection.
System.gc() method may be used to call it explicitly.
Is This Answer Correct ? | 180 Yes | 34 No |
Post New Answer View All Answers
What is called module?
Where is the singleton class used?
Is string is a data type?
What does exp mean in math?
What causes memory leaks in java?
How many bytes is a string in java?
What are locale settings?
Are there structures in java?
What is data and its types?
what are the methods in object?
Is java hashset ordered?
Explain the difference between protected and default access.
What are the rules for variable declaration?
Is array serializable java?
Define packages in java?