Abstraction Interview Questions in Java

Advertisements

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 Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements