October 22, 2024
Chicago 12, Melborne City, USA
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

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video