Multiple Choice
To close a connection, which of the following statements can you use?
A) URL u = new URL("http://www.yahoo.com") ;
URLConnection conn = u.close() ;
B) URL u = new URL(str) ;
URLConnection conn = new URLConnection(u) ;
C) URL u = new URL(str) ;
URLConnection conn = u.closeURLConnection() ;
D) There is no need to close the connection.
Correct Answer:

Verified
Correct Answer:
Verified
Q31: The _ is a complex collection of
Q48: The HTTP response code 404 means _.<br>A)the
Q55: The HTTP command PUT _.<br>A)returns the requested
Q61: A successful response has status _.<br>A) 200
Q64: A print writer buffers the characters that
Q65: a(n. _ is a pointer to an
Q66: For test protocols, turn the socket streams
Q69: The _ is used to download received
Q70: Write a code fragment that connects to
Q71: The _ class makes it easy to