Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (7k points)

What is the real-time application of the interface?

1 Answer

0 votes
by (13.1k points)

We use an interface to abstract the user’s view from the code. It is used to achieve multiple inheritance which is not supported by Java. It is also used to achieve loose coupling.

In real-time it could be used to hide the sensitive data and the functionality from the users like Connection interface in JDBC provides you default functionality to connect your database and it contains abstract methods commit, rollback, etc.

Want to learn Java? Check out the Java certification from Intellipaat.

Related questions

0 votes
1 answer
asked Feb 20, 2021 in Java by Jake (7k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Sep 23, 2019 in Java by Ritik (3.5k points)

Browse Categories

...