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
Q25: The HTTP command OPTIONS _.
A)requests the item's
Q27: The HTTP command POST _.
A)returns the requested
Q37: The HTTP command TRACE _.
A)traces the requested
Q39: The HTTP command HEAD _.
A)stores the header
Q40: The HTTP command PUT _.
A)returns the requested
Q63: What does TCP/IP stand for?
A)Transmission Control and
Q67: Sending commands over a socket connection is
Q68: What does the following if statement do?
If
Q69: To open a connection, which of the
Q71: You should not use a _ to
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents