Inheritance is a fundamental concept in object-oriented programming (OOP), including the Java programming language. It allows you to create a new class (subclass or child class) that is based on an existing class (superclass or parent class). The subclass inherits the attributes (fields) and behaviors (methods) of the superclass, and it can also have its own additional fields and methods. Inheritance is a way to achieve code reuse and establish a relationship between classes.
In Java, you can achieve inheritance using the extends keyword.