Tuesday, November 29, 2011

What is the abstraction? Give example?

Abstraction means to hide the unnecessary data:Abstraction means "giving the relevant details",just opposite to the encapsulation that is hiding the irrelevant details,:Abstraction is the mechanism of exposing only essential features by hiding the implementation details. :abstract class is a class which is only declared not defined. it can have both abstract as well as concrete method.it can not be instantiated.:Abstraction means hiding unnecessary information. Java provide some function in the form of class to hide its working, developer only need to use that class & interfaces to obtained specific functionality best example is displaying the Hello to monitor in that situation if programmer think how this low level activity happen then it is of no use so Java provide System class for this functionality. In real time we can consider examlpe of car, their is no need to know about cars hundreds of parts ,we only need to drive it Thats exactly abstraction is.:Abstraction means hiding the details and providing the features.:Abstraction shows the essential :Abstraction is a hide the uneccessary data and it is implement in programing by modifier
Category:Java Interview Questions

No comments:

Post a Comment