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:
Verified
Q22: The HTTP command DELETE _.
A)deletes two items,
Q27: The HTTP command POST _.
A)returns the requested
Q33: The HTTP command GET _.
A)returns the requested
Q37: The HTTP command TRACE _.
A)traces the requested
Q39: The HTTP command HEAD _.
A)stores the header
Q66: To close a connection, which of the
Q67: Sending commands over a socket connection is
Q68: What does the following if statement do?
If
Q71: You should not use a _ to
Q71: You should use a _ to connect
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