http://www.javakc.com
2022-08-05 16:51:06 查看(47) 回复(0)
package ch01; public class Test4 { public static void main(String[] args) { int x=10; //短路 boolean b1=false && ++x>5;//第一个表达式为假,第二个表达式无需计算 System.out.println(b1); System.out.println(x); } }
评论
站点统计|举报|Archiver|手机版|小黑屋|Comsenz Inc.
GMT+8, , Processed in 0.195171 second(s), 9 queries .
Powered by javakc! X1.0
© 2004-2014 javakc
f1208.com 备案号:京ICP备14030918号-1