Multiple Choice
Suppose you use the URLGet program in Section 22.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
Correct Answer:
Verified
Q8: The HTTP response code 200 means _.<br>A)the
Q18: The HTTP command OPTIONS _.<br>A)requests the item's
Q22: Buffering the characters means:<br>A)characters are immediately sent
Q32: What are among the most important pieces
Q33: Suppose you use the URLGet program in
Q34: A(n) _ describes how data for a
Q37: When you communicate with a mail server,
Q40: The following command: java pgmName hostname /<br>Lets
Q42: You should not use a _ to
Q62: You should use a _ to connect