Open In App

Output of Java programs | Set 10 (Garbage Collection)

Prerequisite – Garbage Collection in Java

Difficulty level : Intermediate
In Java, object destruction is taken care by the Garbage Collector module and the objects which do not have any references to them are eligible for garbage collection. Below are some important output questions on Garbage collection.
Predict the output of following Java Programs:




Article Tags :