Which statement is true about an Interface in Java?

2024

Which statement is true about an Interface in Java?

  1. A.

    An interface cannot extend another interface.

  2. B.

    An interface can contain implemented methods.

  3. C.

    An interface can contain instance variables.

  4. D.

    A class can implement multiple interfaces.

  5. 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.

Explore the full course: Up Lt Grade Assistant Teacher 2025