Object-oriented programming, commonly known as OOPs is a programming style to solve a problem using encapsulation, abstraction, inheritance, and polymorphism.
Inheritance in Java is one of the four pillars of OOPS. It depicts a parent-child relationship between classes. It follows an order of execution of constructors.