This question has already been answered:

I saw the interface code today, was marked as default and had a body! What is this? The interface is completely abstract.

Reported as a duplicate by members of user194374, Community Spirit 5 Feb '17 at 19:22 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • 3
    The interface is not a "completely abstract class". A class, even an abstract one, has a state (fields). The interface describes only the behavior (how the methods should look like). - Nofate
  • You're right. Shildt was wrong :) - Flippy

1 answer 1

So like this. Now interfaces are entities with no fields. Those. You can implement methods that use constants, other methods of the interface, or static methods of other classes.