Multiple choice technology programming languages

Java allows multiple inheritance through

  1. Class

  2. Interface

  3. None

  4. Thread

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Java does not support multiple inheritance of classes (to avoid the diamond problem), but it does support multiple inheritance of interfaces. A class can implement multiple interfaces, inheriting their contracts. This is how Java achieves multiple inheritance functionality while avoiding implementation complexity.