1.

In java, ____________________ takes care of managing memory for objects dynamically.(a) Free collector(b) Dust collector(c) Memory manager(d) Garbage collectorI had been asked this question in final exam.Asked question is from Memory Allocation of Object topic in chapter Object of Object Oriented Programming

Answer»

The CORRECT option is (d) Garbage collector

The EXPLANATION: 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