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
Q2: The _ has one function, to attempt
Q3: _ is the protocol that defines communication
Q9: IP breaks up large chunks of data
Q13: What are among the most important pieces
Q14: _ _ was developed to enable different
Q17: A(n) _ is a set of instructions
Q21: Suppose you use the URLGet program in
Q23: The _ program is a useful tool
Q28: To connect to the HTTP port (80)
Q31: Which of the following protocols is used
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