class A {
}
class B extends A {
}
publicclass MainClass {
static String s = "-";
publicstaticvoid main(String[] args) {
A[] aa = new A[2];
B[] ba = new B[2];
myMethod(aa);
myMethod(ba);
myMethod(7);
System.out.println(s);
}
staticvoid myMethod(A[]... a2) {
s += "1";
}
staticvoid myMethod(B[]... b1) {
s += "2";
}
staticvoid myMethod(B[] b1) {
s += "3";
}
staticvoid myMethod(Object o) {
s += "4";
}
}