摘要: package Interview; /** * Created by Jackson on 2017/9/18 10:55 * 因为java引入了中间缓存变量的机制,所以,j=j++可以换成如下写法 * temp=j; * j=j++; * j=temp; * 所以程序最终输出结果为 0 */ public class interview { public static... 阅读全文
posted @ 2017-09-18 11:32 南派周叔叔 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1. 下面代码的输出结果: package Interview; /** * Created by Jackson on 2017/9/18 9:39 */ public class Test{ static{ int x = 5; } static int x,y;//x等于0 y等于0 public static void main(... 阅读全文
posted @ 2017-09-18 10:04 南派周叔叔 阅读(187) 评论(0) 推荐(0) 编辑