best answer > Can we have static methods in interface 2024?- QuesHub | Better Than Quora
  • Can we have static methods in interface 2024?

    Java interfaces can methods

    Questioner:Charlotte Richardson 2023-06-09 06:42:34
The most authoritative answer in 2024
  • Zachary Evans——Works at Airbnb, Lives in Portland, OR

    In Java 8, interfaces can contain implemented methods, static methods, and the so-called "default" methods (which the implementing classes do not need to override). ... "default" methods shouldn't have been allowed in interfaces at all. You could always use an abstract class for this purpose.Mar 21, 2014read more >>
    +119962023-06-16 06:42:34

About “Java、interfaces can、methods”,people ask:

READ MORE:

QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.

分享到

取消