Home » JAVA Programming » Interfaces » Question
  1. What will happen if we provide concrete implementation of method in interface?
    1. Compilation failure
    2. The concrete class implementing that method need not provide implementation of that method
    3. Method not found exception is thrown
    4. Runtime exception is thrown
    5. None of these
Correct Option: A

The methods of interfaces are always abstract. They provide only method definition.



Your comments will be displayed only after manual approval.