Start learning →

What does the Java compiler supply when no constructor is written?

AA static class method
BA deep copy routine
CA private class block
DA default constructor
Answer & Solution
Correct answer: D. A default constructor
The Java compiler inserts a default constructor if none is explicitly coded.
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 →