String.valueOf()和toString()有什么区别吗?
两个区别,其一String.valueOf()可将基本类型转化String其二,如果要转化的对象为null,那么toString会报nullpointexception而String.valueof()为转化为字符串"null"