Home » JAVA Programming » Interfaces » Question
  1. What happens when a constructor is defined for an interface?
    1. Runtime Exception
    2. The interface compiles successfully
    3. The implementing class will throw exception
    4. Compilation failure
    5. None of these
Correct Option: D

Constructor is not provided by interface as objects cannot be instantiated.



Your comments will be displayed only after manual approval.