Question OOP-ABS-0007
EasyCan a Java class implement more than one interface?
- A.
Only two
- B.
No
- C.
Show answer and explanation
Answer: D
class Duck implements Flyable, Swimmable is allowed; this is Java's form of multiple inheritance of type.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Abstraction and Interfaces question
Can a Java class implement more than one interface?
Only two
No
Answer: D
class Duck implements Flyable, Swimmable is allowed; this is Java's form of multiple inheritance of type.
Only if they are empty
Yes