Interview Questions on Abstraction in Java for Freshers

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

Related

Amazon Web Services Interview Questions for Freshers

Top Amazon Web Services Interview Questions Explain What Is Aws? AWS stands for Amazon Web Service; it is a collection of remote computing services also known as cloud computing platform. This new...

Web Hosting Service Interview Questions for Freshers

Top Most Web Hosting Service Interview Questions Q – 1 What is WebHost Manager (WHM)? Ans- WebHost Manager (WHM) is a web-based tool used by server administrators and resellers to manage host...

JSP Interview Questions for Freshers Part – 2

1. What is a JSP? JSP files are HTML files with special tags that contain java source code that provide dynamic content. Google search engine, the search page is dynamic will display the search res...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item