Can an interface method be private?

Last Updated :
Discuss
Comments

Can an interface method be private?

Yes, but only in Java 9 and later


No, interface methods must always be public

Yes, in any Java version

Only if the method is static

Share your thoughts in the comments