java 基本类型和包装类的比较

public class BoxingTest {
    
    @Test
    public void test1(){
        String a = new String("1");
        String b = new String("1");
        Long c = 1L;
        System.out.println(a == b);
        System.out.println(c.equals(a));
        String d = "1";
        String e = "1";
        System.out.println(d==e);
    }
}

 

语法糖dsl的参考文档如下:

http://blog.csdn.net/ol_beta/article/details/6787234

http://www.cnblogs.com/trytocatch/p/3545244.html

使用DSL进行压力测试

 

posted @ 2015-02-06 15:41  唾手可得的树  阅读(385)  评论(0编辑  收藏  举报