2016年5月31日

【Java基础一】String创建对象"" && null

摘要: 当我们创建对象是,习惯用""去定义,比如String a=""这样去定义一个空字符串,为何不用null去定义呢?""和null有什么区别?看如下两个demo:看demo1: public static void main(String[] args) { Stri... 阅读全文

posted @ 2016-05-31 21:59 huohuoL 阅读(135) 评论(0) 推荐(0) 编辑

导航