public static void main(String[] args) {Testfff bb = new Testfff();
short b = 7;
long a = 5;
bb.test1(a);
bb.test1(b);
} public void test1(int lin) {System.out.println("int");
} public void test1(long lin) {System.out.println("long");
} public void test2(short lin) {System.out.println("short");
}
public class Zd {
public static void main(String[] args) {T1 t1 = new T1();
T2 t2 = new T2();
T3 t3 = new T3();
new Zd().t1(t1);
new Zd().t1(t2);
new Zd().t1(t3);
}
public void t1(T1 t1){
System.out.println("t1");
}
public void t1(T2 t1){
System.out.println("t2");
}
public void t1(T3 t1){
System.out.println("t3");
}
}class T1{
}class T2 extends T1{
}class T3 extends T2{
}