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
Q63: What does TCP/IP stand for?
A)Transmission Control and
Q64: A successful response has status code _.
A)200
Q65: What does the following if statement do?
if
Q66: When you communicate with a mail server,
Q67: A page not found has status code
Q69: The HTTP response code 200 means _.
A)the
Q70: The HTTP response code 404 means _.
A)the
Q71: You should use a _ to connect
Q72: When you communicate with a web server
Q73: What would the getResponseCode return if the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents