Multiple choice technology programming languages

A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Java's garbage collector automatically reclaims memory from objects that are no longer reachable. An object becomes eligible for garbage collection when there are no live references to it in the running program. This is a fundamental memory management feature in Java.