OiO.lk Blog java Why static methods with body are applicable in interface, as it defeats the purpose of interface that method without body
java

Why static methods with body are applicable in interface, as it defeats the purpose of interface that method without body


Interface face means method without body, then why static methods with body are allowed in interface

When static method written with body there is no error, as non static methods with body gets an error
It defeats the purpose of abstraction.



You need to sign in to view this answers

Exit mobile version