Solved

Suppose You Use the URLGet Program in Section 21

Question 15

Multiple Choice

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

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