Can interface be static?
Andrew Mclaughlin
Updated on January 05, 2026
Static methods in an interface since java8
Since Java8 you can have static methods in an interface (with body). You need to call them using the name of the interface, just like static methods of a class.