top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What can we have method body in java interface?

+1 vote
368 views
What can we have method body in java interface?
posted Jun 30, 2017 by Ajay Kumar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
 
Best answer

From Java 8 you can define static methods in interfaces in addition to default methods. Otherwise Interfaces only have constant variables(public + static + final) and abstract methods(public & abstract).

answer Jun 30, 2017 by Salil Agrawal
...