1.

Classes and Methods are stored in which space?(a) Eden space(b) Survivor space(c) Tenured space(d) Permanent spaceI had been asked this question in a job interview.Enquiry is from Memory Management topic in section Exploring java.lang & java.io of Java

Answer»

Right answer is (d) Permanent space

To elaborate: The permanent generation holds objects which JVM finds CONVENIENT to have the garbage COLLECTOR. Objects DESCRIBING classes and methods, as WELL as the classes and methods themselves,are a part of Permanent generation.



Discussion

No Comment Found

Related InterviewSolutions