2017年7月13日

值传递和引用传递

摘要: 先看一段代码,是我遇到过的一道面试的笔试题: 1 /** 2 * ***面试题 3 */ 4 public class StringBufferTest { 5 public static void main(String[] args) { 6 int i = 10; 7 test(i); 8 S 阅读全文

posted @ 2017-07-13 16:17 默默红尘 阅读(274) 评论(0) 推荐(0) 编辑

Integer中1000==1000为false而100==100为true

摘要: 1 /** 2 * Created by hunt on 2017/6/3. 3 */ 4 public class TestInteger { 5 public static void main(String[] args) { 6 Integer i1 = 100, i2 = 100; 7 Sy 阅读全文

posted @ 2017-07-13 16:03 默默红尘 阅读(823) 评论(0) 推荐(0) 编辑

导航