2 ms·
Doesn't java now let you have both private methods in interfaces and default implementations of the interface methods?
by thfuran 1y ago
Doesn't java now let you have both private methods in interfaces and default implementations of the interface methods?
- mdaniel 1y ago$ cat Foo.java interface Foo { private String jimbo() { return "yup"; } } $ javap -c -private Foo Compiled from "Foo.java" interface Foo { private java.lang.String jimbo(); Code: 0: ldc #1 // String yup 2: areturn } and interface Bar { default boolean isAwesome() { return true; } }