Abstraction Interview Questions in Java


Prev Tutorial Next Tutorial

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 ?

  • Inheritance
  • Encapsulation
  • Abstraction
  • Composition

Ans: Abstraction


Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements