Start learning →

Where is an object created when its constructor is executed in Java?

AOn the heap memory
BInside stack frames
CWithin CPU register
DInside constant pool
Answer & Solution
Correct answer: A. On the heap memory
Constructing an object in Java allocates its memory storage on the heap.
Practise this question with Quill — ICSE Class 8 →

Keep practising Java Data Types and Variables

Browse all Java Data Types and Variables questions for ICSE Class 8, or explore more Computer Applications topics.

Start a Java Data Types and Variables lesson →