public class Test {
public static void main(String[] args) {
test();
}
public static boolean test() {
return test1() && test2();
}
public static boolean test1() {
System.out.println("test1");
return false;
}
public static boolean test2() {
System.out.println("test2");
return true;
}
public static void main(String[] args) {
test();
}
public static boolean test() {
return test1() && test2();
}
public static boolean test1() {
System.out.println("test1");
return false;
}
public static boolean test2() {
System.out.println("test2");
return true;
}
}
猜猜结果输出啥!
test1
猜对了吗?