0 votes
in JAVA by
What is garbage collection in java?

1 Answer

0 votes
by

Java garbage collection is an automatic process. The programmer does not need to explicitly mark objects to be deleted. The garbage collection implementation lives in the JVM. 

Each JVM can implement garbage collection however it pleases; the only requirement is that it meets the JVM specification. Although there are many JVMs, Oracle’s HotSpot is by far the most common. It offers a robust and mature set of garbage collection options.

Related questions

+1 vote
asked May 5, 2021 in JAVA by SakshiSharma
+3 votes
asked May 31, 2020 in JAVA by SakshiSharma
...