Java
Programming and Technical
Programming
Functions
A default method in an interface can be either private or public or protected. State True or False.
Read Solution (Total 1)
-
- In Java, a default method in an interface can be either public or protected, but it cannot be private. Because the idea behind creating interface is that it can by extended by another interface or extended by a class later and their it's abstract method can become concrete one.
So there's no point in making interface method private by default. - 1 year agoHelpfull: Yes(1) No(0)
Java Other Question