News for hackers. Stuff that matters.
Re:Java 25 Officially Released by thfuran on Tuesday September 16, 2025 @04:34PM (#45267636)
Doesn't java now let you have both private methods in interfaces and default implementations of the interface methods?
Re:Java 25 Officially Released by mdaniel on Tuesday September 16, 2025 @11:44PM (#45271423)

    $ 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;
      }
    }