Question 30Asked in DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

Which among the following is the primary purpose of using interfaces in Java?

  1. ATo avoid creating objects
  2. BTo achieve multiple inheritance
  3. CTo improve user experience
  4. DTo reduce memory usage
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.

From DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

This is question 30 of DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.