What Would Be The Behaviour If One Parameterized Constructor Is #199
What would be the behaviour if one parameterized constructor is explicitly defined, but no default constructor is provided?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Classes Methods - Java Constructors - Quiz No.1.
What would be the behaviour if one parameterized constructor is explicitly defined, but no default constructor is provided?
Compilation error
Compilation succeeds
Runtime error
Compilation succeeds but at the time of creating object using default constructor, it throws compilation error