Start learning →

What name must a constructor in Java always share?

AThe package name
BThe method name
CThe class name
DThe project name
Answer & Solution
Correct answer: C. The class name
Java constructors are required to have the same name as the declaring class.
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 →