Suppose you use the URLGet program in Section 22.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
Q2: The _ has one function, to attempt
Q3: _ is the protocol that defines communication
Q17: A(n) _ is a set of instructions
Q18: Suppose you use the URLGet program in
Q21: Which of the following statements is correct?
A)HTML
Q23: The _ program is a useful tool
Q24: Which code creates a server socket on
Q25: What are the steps involved in designing
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