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 this() and super() used in a method?

a) Runtime error
b) Throws exception
c) compile time error
d) Runs successfully

Answer: c
Explanation: this() and super() cannot be used in a method. This throws compile time error.

Join The Discussion