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 result if a class extends two interfaces and both have a method with same name and signature? Lets assume that the class is not implementing that method.

a) Runtime error
b) Compile time error
c) Code runs successfully
d) First called method is executed successfully

Answer: b
Explanation: In case of such conflict, compiler will not be able to link a method call due to ambiguity. It will throw compile time error.

Join The Discussion