Abstraction Interview Questions in Java
Interview Questions on Abstraction in Java
What is Abstraction ?
Abstraction is a process of hiding the implementation details and showing only functionality to the user.
How achieve Abstraction in Java ?
There are two ways to achieve abstraction in java
- Abstract class (0 to 100%)
- Interface (100%)
Real life example of Abstraction ?
Mobile phone is one of example of abstraction. We only know about how to call and use mobile but we can't know about internal functionally of mobile phone.
Real life example of Abstraction and Encapsulation ?
Outer Look of a Television, like it has a display screen and channel buttons to change channel it explains Abstraction but Inner Implementation detail of a Television how CRT and Display Screen are connect with each other using different circuits , it explains Encapsulation.
Which of the following Java feature show only important information ?