Solved

Suppose You Use the URLGet Program in Section 22

Question 21

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents