Programming in an object-oriented fashion is known as OOP. Writing procedures or functions that operate on the data is what procedural programming entails, but object-oriented programming entails constructing objects that include both data and functions.
OOps in java is to improve code readability and reusability by defining a Java program efficiently. The main principles of object-oriented programming are abstraction, encapsulation, inheritance, and polymorphism. These concepts aim to implement real-world entities in programs.