Multiple Choice
Suppose you use the URLGet program in Section 23.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
Q36: A successful response has status code _.<br>A)200
Q37: When you communicate with a mail server,
Q38: To connect to the HTTP port (80)
Q39: For the server to execute the run
Q40: Which of the following is not an
Q42: _ is the protocol that defines communication
Q43: If a computer wants to request information
Q44: What does the acronym SMTP stand for?<br>A)Simple
Q45: Which of the following is true about
Q46: Which code creates a server socket on