Multiple Choice
Suppose you use the URLGet program in Section 22.5 to get a web page from a server that does not exist, such as http://wombat.java/index.html. What will happen?
A) The call to the URL constructor will throw an exception.
B) The call to getResponseCode will throw an exception.
C) The call to getResponseCode will return the error code 404.
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
Q24: _ has built-in provisions for retrying incomplete
Q28: Sending commands over a socket connection is
Q29: What are the steps involved in designing
Q32: What are among the most important pieces
Q34: A(n) _ describes how data for a
Q37: Suppose you use the URLGet program in
Q44: What does the acronym SMTP stand for?<br>A)Simple
Q62: You should use a _ to connect