String s = null空字符串 ( ) 和空字符串 ( )有什么区别String s = ""?
这就是我所拥有的:
String s1 = ""; //print statement does not print any thing for s1 but s1.length()=0
String s2 = null;//print statement prints "null" for s2 but s2.length() gives exception
这是什么意思?