Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
仮想拡張メソッド/別名デフォルトのオーバーライド可能なメソッドの構文(jdk 8)は十分に文書化されています:
public interface Foo { default void bar(String out) { System.out.println(out); }; }
しかし、インターフェイス上の静的な非継承メソッドの正しい構文のリファレンスが見つかりません か?
構文は、メソッドがクラスにある場合と同じです。
public static void bar() { System.out.println("hello"); }