Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
Can anyone help me what is the exact benefits of using interfaces in Java?

1 Answer

0 votes
by (26.7k points)

Basically, interfaces are the collection of static fields and abstract methods. Also, interfaces help our class to behave in a particular way as we want over a code. Also, we can implement an interface so that we can put compulsion on the class and it will override all of the abstract methods.

I hope this will help.

Want to become a Java Expert? Join Java Certification now!!

Want to know more about Java? Watch this video on Java Tutorial for Beginners | Java Programming :

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Apr 6, 2021 in Java by Jake (7k points)

Browse Categories

...