1.

Where is the memory allocated for the objects?(a) HDD(b) Cache(c) RAM(d) ROMThis question was addressed to me in unit test.The question is from Memory Allocation of Object topic in chapter Object of Object Oriented Programming

Answer»

The CORRECT ANSWER is (c) RAM

The BEST I can explain: The memory for the objects or any other data is allocated in RAM initially. This is while we run a program all the memory allocation takes place in some RAM segments. Arrays in heap and local members in stack ETC.



Discussion

No Comment Found

Related InterviewSolutions