Multiple choice technology programming languages

Which one of these are true regarding inheritance in java??

  1. A class can extend multiple classes

  2. An interface can extend multiple classes

  3. An interface can implement multiple interfaces

  4. A class can extend multiple interfaces

  5. A class can implement multiple interfaces

  6. An interface can extend multiple interfaces

Reveal answer Fill a bubble to check yourself
E,F Correct answer
Explanation

In Java, multiple inheritance of implementation is not supported for classes, so a class can only extend one class, but it can implement multiple interfaces. Additionally, an interface can extend multiple other interfaces to combine behaviors.