String 小知识点

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

        str2 =str1.toString() 报错 
    }
    void

相关文章
相关标签/搜索