Business Studies, asked by ABHI98511, 1 year ago

Explain the need of Garbage collection in Java.

Answers

Answered by RDEEP90
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