Solved

Suppose You Use the URLGet Program in Section 23

Question 20

Multiple Choice

Suppose you use the URLGet program in Section 23.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