-
What would be the result if a class extends two interfaces and both have a method with same name and signature?
-
- Code runs successfully
- First called method is executed successfully
- Runtime error
- Compile time error
- None of these
Correct Option: D
In case of such conflict, compiler will not be able to link a method call due to ambiguity. It will throw compile time error.