【Java基础一】String创建对象"" && null
摘要:当我们创建对象是,习惯用""去定义,比如String a=""这样去定义一个空字符串,为何不用null去定义呢?""和null有什么区别?看如下两个demo:看demo1: public static void main(String[] args) { Stri...
阅读全文
posted @ 2016-05-31 21:59
posted @ 2016-05-31 21:59
posted @ 2016-05-30 09:44
posted @ 2016-05-29 14:12
posted @ 2016-05-03 20:34