What is Abstraction In Java?

 
 

Share on Google+Share on Google+

Java Coder
What is Abstraction In Java?
1 Answer(s)      8 months ago
Posted in : Java Beginners
Ads

Hi,

What is Abstraction In Java? How to use the Abstraction In Java to write program?

Thanks

Ads
View Answers

April 16, 2017 at 4:55 PM


Hi, Suppose you are developing important Java class which implements some algorithm. After completion and full testing of the Java class you are planning to release it for other developer.

In case you won't want anyone to modify the data or logic within your class for this you will hide all the functions and variables from external access. This process of hiding/securing the class is know as Abstraction.

Abstraction In Java allows you to hide the class implementation. Check the tutorial Abstraction In Java for examples on Abstraction.

Thanks


Ads









Ads

 
Advertisement null

Ads