employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged employer

Tata Consultancy Services interview question

explain about inheritance in Java?

Interview Answer

Anonymous

Nov 25, 2025

Inheritance in Java means one class can reuse and extend another class’s code. A child class (subclass) inherits fields and methods from a parent class (superclass) using the extends keyword.