What is an abstraction in Java?

Java 8Object Oriented ProgrammingProgramming

Abstraction is a process of hiding the implementation details from the user, only the functionality will be provided to the user. In other words, the user will have the information on what the object does instead of how it does it.

In Java, abstraction is achieved using Abstract classes and interfaces.

Published on 05-Feb-2018 20:29:46