1.

In java ______________ takes care of managing memory for objects dynamically.(a) Free collector(b) Dust collector(c) Memory manager(d) Garbage collectorThe question was posed to me by my school principal while I was bunking the class.This intriguing question originated from Overloading Member Functions topic in division Member Functions & its Types of Object Oriented Programming

Answer»

Correct answer is (d) Garbage collector

To EXPLAIN I would SAY: The garbage collector in JAVA takes care of the memory allocations and their deletions dynamically. When an OBJECT is no more required then the garbage collector deletes the object and free up all the RESOURCES that were held by that object.



Discussion

No Comment Found

Related InterviewSolutions