Suppose you use the URLGet program in Section 23.5 to get a web page that does not exist on a server (which does exist) .Assuming that the server is otherwise working properly, what will happen?
A) The call to openConnection will throw an exception.
B) The call to getResponseCode will return the error code 404.
C) The call to getResponseMessage will return null.
D) The call to getInputStream will throw an exception.
Correct Answer:
Verified
Q37: The HTTP command TRACE _.
A)traces the requested
Q38: Which of the following is true about
Q39: The HTTP command HEAD _.
A)stores the header
Q40: The HTTP command PUT _.
A)returns the requested
Q41: Sending commands over a socket connection is
Q43: What are the steps involved in designing
Q44: To kill a server that was started
Q45: Which of the following is true about
Q46: To retrieve the response code from a
Q47: The _ method of the ServerSocket class
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