Multiple choice technology

The concept of MULTIPLE inheritance is implemented in JAVA by (A) extending two or more classes (B) extending one class and implementing one or more interfaces (C) implementing two or more interfaces (D) all of these

  1. (B) & (C)

  2. (A) & (C)

  3. A

  4. D

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

Java doesn't support multiple class inheritance, but multiple interface implementation achieves similar behavior. A class can extend one class (B) and implement multiple interfaces (C). Option A 'extending two or more classes' is impossible in Java. Options B and C together represent how Java implements the concept of multiple inheritance.