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