Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What would be the behaviour if one parameterized constructor is explicitly defined?

a) Compilation error
b) Compilation succeeds
c) Runtime error
d) Compilation succeeds but at the time of creating object using default constructor, it throws compilation error

Answer: d
Explanation: The class compiles successfully. But the object creation of that class gives a compilation error.

Join The Discussion