Which statement is true about an Interface in Java?
2024
Which statement is true about an Interface in Java?
- A.
An interface cannot extend another interface.
- B.
An interface can contain implemented methods.
- C.
An interface can contain instance variables.
- D.
A class can implement multiple interfaces.
- E.
Question not attempted
Attempted by 66 students.
Show answer & explanation
Correct answer: D
A Java class can implement multiple interfaces, which allows it to promise several sets of behaviours.