top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What can we have method body in java interface?

+1 vote
53 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...