Solved

To Open a Connection, Which of the Following Statements Can

Question 69

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

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