+2 votes
in JAVA by
Can we have static methods in an Interface in Java?

1 Answer

0 votes
by

Static methods can’t be overridden in any class while any methods in an interface are by default abstract and are supposed to be implemented in the classes being implementing the interface. So it makes no sense to have static methods in an interface in Java.

Related questions

0 votes
asked Oct 18, 2020 in JAVA by sharadyadav1986
+1 vote
asked Dec 7, 2020 in JAVA by SakshiSharma
...