OOPs Concept in java
In Java, everything is an object. Java can be simply extended since it is based on the Object-oriented model. The four main OOPs concept in Java is:
Inheritance: It is the process by which a class acquires the characteristics of its superclasses.
Polymorphism: A big word for a simple concept. Often, many classes in a program will respond to some common message.
Encapsulation: It refers to protecting the internal details of an object from direct manipulation by the user.
Abstraction: It is defined as the process of identifying only the required features of an object ignoring the unnecessary details.