0 votes
in JAVA by
Are static methods allowed in a Java interface?

1 Answer

0 votes
by

Are static methods allowed in a Java interface?

Yes, static methods are allowed in java interfaces. They are treated as default methods so they need not be implemented.

Related questions

+1 vote
asked Dec 7, 2020 in JAVA by SakshiSharma
+1 vote
asked Jul 27, 2021 in JAVA by SakshiSharma
...