// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
// since Java 8 (2014)

public class MI {
    public static interface P1 {
        public default void m1() {
            System.out.println("P1.m1");
        }
    }
    public static interface P2 {
        public default void m2() {
            System.out.println("P2.m2");
        }
    }
    public static class C implements P1, P2 {
    }
    public static void main(String[] args) {
        C o = new C();
        o.m1();
        o.m2();
    }
}
