Which Java method does the JVM call to clean up memory that is no longer reachable?

Choose the correct answer

Explanation

The JVM invokes the finalize() method to perform cleanup operations before reclaiming memory of objects that are no longer accessible. The finalize() method allows an object to release resources before garbage collection. Other options like reclaimMemory(), final(), or dispose() are not standard JVM methods for this purpose.

Which Java method does the JVM call to clean up memo… — Java concepts and its programming | PakQuizHub