Which keyword is used in Java to implement inheritance?

2024

Which keyword is used in Java to implement inheritance?

  1. A.

    extends

  2. B.

    inherits

  3. C.

    implements

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 177 students.

Show answer & explanation

Correct answer: A

In Java, a class uses the extends keyword to inherit from another class.

Explore the full course: Up Lt Grade Assistant Teacher 2025