Java Network Programming (3rd ed) [Electronic resources]

Harold, Elliotte Rusty

نسخه متنی -صفحه : 164/ 101
نمايش فراداده

15.8 The Object Methods

The URLConnection class overrides only one method from java.lang.Object, toString( ):

public String toString( )

Even so, there is little reason to print a URLConnection object or to convert one to a String, except perhaps if you are debugging. toString( ) is called the same way as every other toString( ) method.