Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

What is Abstraction In Java?

Ads

 
 

Share on Google+Share on Google+

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

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