Java Network Programming, Third Edition

     

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.

Категории