Solved

To Open a Connection, Which of the Following Statements Can

Question 23

Multiple Choice

To open a connection, which of the following statements can you use?


A) URL u = new URL("http://www.yahoo.com") ;
URLConnection conn = u.open() ;
B) URL u = new URL("http://www.yahoo.com") ;
URLConnection conn = new URLConnection(u) ;
C) URL u = new URL("http://www.yahoo.com") ;
URLConnection conn = u.openURLConnection() ;
D) URL u = new URL("http://www.yahoo.com") ;
URLConnection conn = u.openConnection() ;

Correct Answer:

verifed

Verified

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

Related Questions