Start learning →

Where does a Java constructor allocate reference objects?

AOn the stack
BOn the heap
CIn ROM cache
DIn disk swap
Answer & Solution
Correct answer: B. On the heap
Constructors allocate memory for reference type objects on the heap in Java.
Practise this question with Quill — ICSE Class 10 →

Keep practising User-Defined Methods and Constructors

Browse all User-Defined Methods and Constructors questions for ICSE Class 10, or explore more Computer Applications topics.

Start a User-Defined Methods and Constructors lesson →