Is Interface in java provide 100% abstraction or not ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is Interface in java provide 100% abstraction or not ?

6th Sep 2019, 3:52 PM
Kabir
Kabir - avatar
3 Answers
+ 1
The interface definition states the names of the methods and their return types and argument signatures. There is no executable body for any method that is left to each class that implements the interface.
6th Sep 2019, 5:26 PM
**🇦🇪|🇦🇪**
**🇦🇪|🇦🇪** - avatar
0
Interface give 100% abstraction and abstract class give 0-100% abstraction.
6th Sep 2019, 5:13 PM
**🇦🇪|🇦🇪**
**🇦🇪|🇦🇪** - avatar
0
but java 8/9 has default/static/private methods, so how it's possible 100% abstraction in interface
6th Sep 2019, 5:18 PM
Kabir
Kabir - avatar