Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (55.6k points)
Can anyone explain about abstraction in Java?

1 Answer

0 votes
by (119k points)

Abstraction is one of the Objective oriented programming concepts of Java. It means hiding the information which is repeated multiple times and not needed for the user.

Example: It is like we use smartphones every day but it is not necessary to know how it works to use.

In Java, abstraction can be implemented by abstract classes and methods. Abstract classes can be implemented just by adding an abstract before the class. We can use abstract classes only by child class for creating objects in inheritance. The abstract method does not have variables or code inside a function that will be provided by the child class.

I would suggest this Java Certification program by Intellipaat if you are interested in Java.

You can watch this video on the Java tutorial:

Related questions

0 votes
1 answer
asked Mar 2, 2021 in Java by rahulnayar01123 (6.1k points)
0 votes
1 answer
asked Apr 14, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer
asked Feb 16, 2021 in Java by Jake (7k points)
0 votes
1 answer
0 votes
1 answer
asked Jan 25, 2021 in Java by dante07 (13.1k points)

Browse Categories

...