Solved

To Close a Connection, Which of the Following Statements Can

Question 66

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents