Explain the need of Garbage collection in Java.
Answers
Answered by
0
A Definition of Java Garbage Collection. ... When Java programs run on the JVM, objects are created on the heap, which is a portion of memory dedicated to the program. Eventually, some objects will no longer be needed. The garbage collector finds these unused objects and deletes them to free up memory.
Similar questions
Geography,
6 months ago
Economy,
6 months ago
Social Sciences,
6 months ago
Psychology,
1 year ago
History,
1 year ago
Math,
1 year ago