Multiple Choice
Suppose you use the URLGet program in Section 21.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
Q14: The HTTP command HEAD _.<br>A)stores the header
Q19: The HTTP command TRACE _.<br>A)traces the requested
Q22: Buffering the characters means:<br>A)characters are immediately sent
Q29: If your data gets lost or garbled
Q52: _ attempts reliable delivery of data, with
Q58: The _ translates domain names into Internet
Q59: Which code creates a server socket on
Q61: A successful response has status _.<br>A) 200
Q62: You should use a _ to connect
Q74: _ has no provision for retrying an