// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
public class Default {
    public static void main(String[] args) {
        Test o = new TestImpl();
        o.m1();
        o.m2();
    }
}

interface Test {
    public void m1();
    public default void m2() {
        System.out.println("m2");
    }
}

class TestImpl implements Test {
    public void m1() {
        System.out.println("m1");
    }
}
