Which keyword is used to inherit a class in Java ?

2025

Which keyword is used to inherit a class in Java ?

  1. A.

    extends

  2. B.

    inherits

  3. C.

    implements

  4. D.

    extends implements

Attempted by 57 students.

Show answer & explanation

Correct answer: A

The correct keyword to inherit a class in Java is 'extends'. Option 0 is the correct answer.

Explore the full course: Tpsc Assistant Technical Officer