因简书改版后无法添加扩展链接,20170213问题解析请到公众号查看,问题解析在公众号首发,公众号ID:weknow619。
package Feb2017;
public class Ques0214 {
public static void main(String[] args) {
boolean b1 = true;
if (b1 == true || method(true)) {
System.out.println("location01");
}
}
public static boolean method(boolean location){
if (location == true) {
System.out.println("location02");
}
System.out.println("location03");
return true;
}
}
今日问题:
请问主程序输出结果是什么?