What is abstraction with strong example program?
(not a general program)

Answer Posted / gaurav (accenture)

Just to tell you guys that abstraction and encapsulation are two different concepts of oops. thats why they've use two terminologies. Common Sense. Right.!

The meaning of abstraction is just the same as it is in English but applying it in coding world. Simply we can say as “what” the method or a module does not “how” it does it. The word abstraction is to distill a complicated system down to its most fundamental parts and describe these parts in a simple, precise language.

Let’s compare Java and C++. We have a good example of abstraction. In C++, you have to deal with pointers and references a lot. You have to deal a lot of garbage collection. In essence, you have to work on a low level. (C and C++ in turn abstracted a lot of even lower level machine code.) In Java, those things are abstracted away. You just assume they exist. In essence, abstraction means that you are working on a higher level. You don’t care how pointers work in Java, you just assume that they work. You don’t have to concentrate on the lower level stuff, you work on higher level.

I hope it covers everything.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does int [] mean in java?

538


What is a native method in java programming?

529


What are the different types of collections in java?

530


How do you define a method?

514


Similarity and difference between static block and static method ?

536






What is the difference between sop and work instruction?

484


What is boolean example?

529


How will you serialize a singleton class without violating singleton pattern?

1524


Explain try and catch keywords in java?

623


What is the formula to calculate percentage?

538


Is java type safe?

513


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

567


What is boolean keyword in java?

604


Can we sort array in java?

531


Is arraylist a class in java?

538