Choose the correct statement with respect to interfaces – (i) Java does not…
2022
Choose the correct statement with respect to interfaces – (i) Java does not support “multiple inheritance”; however, it can be achieved by using interfaces. (ii) Unless the class that implements the interface is abstract, all the methods of the interface need to be defined in the class. (iii) To implement multiple interfaces, separate them with a comma (,).
- A.
Only (i)
- B.
(i) and (ii)
- C.
(ii) and (iii)
- D.
(i), (ii) and (iii)
Attempted by 93 students.
Show answer & explanation
Correct answer: D
All statements are true: interfaces allow multiple inheritance, require implementation in concrete classes, and use comma-separated syntax for multiple implementation.