class TestOverload {

    public static void main(String[] args) {
        Super sp = new Super();
        sp.test();
        sp.test(100,3000);      // no ambiguity in same class
        
        Sub sb = new Sub();
        sb.test();
//      sb.test(4000,200);      // ambiguity
        sb.test(4000L, 200);    // ok, 4000 defined as L(ong)
    }

}

class Super {
        
    void test() {
        System.out.println("In Super.test()");
    }
    
    void test( int i, long j) {
        System.out.println("In Super.test(int, long)");
    }
}

class Sub extends Super {
    
    void test(long j, int i) {      // overloads test() in Super
        System.out.println("In Sub.test(long,int)");
    }
}
