String类的valueOf以及动态绑定(多态)
摘要:
1、String类的valueOfClass Stringpublic staticStringvalueOf(Objectobj)Returns the string representation of theObjectargument.Parameters:obj- anObject.Returns:if the argument isnull, then a string equal to"null"; otherwise, the value ofobj.toString()is returned.See Also:Object.toString()2、动态绑定( 阅读全文
posted @ 2013-08-11 11:12 gogoy 阅读(331) 评论(0) 推荐(0) 编辑