DEV Community

Sakthi S
Sakthi S

Posted on

Abstraction in Java

  • Abstraction in Java is the process of hiding internal implementation details and showing only essential functionality to the user.

Java provides two ways to implement abstraction, which are listed below:

  • Abstract Classes

  • Interface

Advantages of Abstraction

  • Abstraction makes complex systems easier to understand by hiding the implementation details.
    
  • Abstraction keeps different part of the system separated.
    
  • Abstraction maintains code more efficiently.
    
  • Abstraction increases the security by only showing the necessary details to the user.
    

Advantages of Abstraction

  • Abstraction makes complex systems easier to understand by hiding the implementation details.
    
  • Abstraction keeps different part of the system separated.
    
  • Abstraction maintains code more efficiently.
    
  • Abstraction increases the security by only showing the necessary details to the user.
    

Top comments (0)