摘要: 输出为0 抛出NullPointerException 当字符串赋值为""时,表示空字符串,str2指向一个内存空间,该内存空间有一个空的字符串; 当字符串赋值为null时,表示什么都没有,因此无法调用方法; 阅读全文
posted @ 2017-03-25 17:22 PPPeanut 阅读(430) 评论(0) 推荐(0)