Which among the following is the primary purpose of using interfaces in Java?
Show answerHide answer
Correct answer: (B) To achieve multiple inheritance
Explanation
A Java class can extend only one class but can implement many interfaces. Interfaces are therefore Java's way of achieving multiple inheritance of type.