Multiple Choice
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
Correct Answer:
Verified
Q15: A thread dies _<br>A)when the client quits
Q16: Two kinds of data are transmitted between
Q17: The _ has one function, to attempt
Q18: The HTTP command OPTIONS _.<br>A)requests the item's
Q19: The HTTP command TRACE _.<br>A)traces the requested
Q21: When you communicate with a web server
Q22: Buffering the characters means:<br>A)characters are immediately sent
Q23: A _ is an object that encapsulates
Q24: _ has built-in provisions for retrying incomplete
Q25: To retrieve the response code and message