What are basics of OOPS Concepts?

Sahitya Durga
Sahitya Durga

Posted On: Apr 10, 2020

 

OOP concepts in Java are the main ideas behind Java's Object-Oriented Programming. They are an abstraction, encapsulation, inheritance, and polymorphism.

There are four main OOP concepts in Java. They are:

  • Abstraction: It involves utilizing simple things to represent complexity. In Java, abstraction means simple things like objects, classes, and variables that represent more complex underlying code and data.
  • Encapsulation: The practice of keeping fields within a class private, then providing access to them via public methods.
  • Polymorphism: This Java OOP notion lets programmers utilize the very term to indicate different items in diverse contexts.
  • Inheritance: This is a special characteristic of Object-Oriented Programming in Java. It allows programmers to create distinct groups that share many of the properties of existing groups.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Cyient Software Engineer Interview Questions

    Write SQL query to join two tables?

    A JOIN condition is applied to join rows from two or added tables, founded on a similar column connecting them. The various kinds of the JOINs in SQL:LEFT (OUTER) JOIN: Returns every record from ...

    Cyient Software Engineer Interview Questions

    What is Abstract class and interface?

    Abstract Class: An abstract class is a class that is declared abstract, it may or may not include abstract methods. When an abstract class is subclassed, the subclass usually provides implementations ...

    Cyient Software Engineer Interview Questions

    What is Exception handling?

    Exception Handling is one of the powerful mechanisms to handle runtime errors so that the normal flow of the application can be maintained....