Vidyalelo
Java Programming · Q245

Interfaces and Abstract Classes

Programming · Java Programming · question 245

Q245

What happens when a constructor is defined for an interface?

A.
Compilation failure
Answer
B.
Runtime Exception
C.
The interface compiles successfully
D.
The implementing class will throw exception

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board