Java中的String类
摘要:
有如下代码: String s = new String("hello"); // 此句执行后内存中有两个对象,一个由new String("hello")中的"hello"在String Pool里生成一个值为"hello"的对象; //第二个由new在堆里产生一个值为"hello"的对象,该对象 阅读全文
posted @ 2016-10-01 08:50 大侠先锋 阅读(143) 评论(0) 推荐(0)
posted @ 2016-10-01 08:50 大侠先锋 阅读(143) 评论(0) 推荐(0)
posted @ 2016-09-07 14:52 大侠先锋 阅读(628) 评论(0) 推荐(0)
posted @ 2016-09-05 14:14 大侠先锋 阅读(4950) 评论(0) 推荐(0)
posted @ 2016-08-29 21:39 大侠先锋 阅读(483) 评论(0) 推荐(0)