public static void main(String[] args) { Object str1 = null; String str2 = null; str2=str1+""; 不报错 static
str2 =str1.toString() 报错 } void