What is the primary advantage of using interfaces over abstract classes in…

2026

What is the primary advantage of using interfaces over abstract classes in Java ?

Answer: B. A class can implement multiple interfacesIn Java, a class can extend only one class, including an abstract class, but it can implement multiple interfaces. This allows a class to follow multiple…

  1. A.

    Interfaces can have constructors

  2. B.

    A class can implement multiple interfaces

  3. C.

    Interfaces can have instance variables

  4. D.

    Interfaces provide faster execution

Attempted by 194 students.

Show answer & explanation

Correct answer: B

In Java, a class can extend only one class, including an abstract class, but it can implement multiple interfaces. This allows a class to follow multiple contracts and supports flexible polymorphism. Interfaces do not have constructors, do not contain ordinary instance variables, and do not provide faster execution by themselves.

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…