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:
Verified
Q1: Two kinds of data are transmitted between
Q2: The _ has one function, to attempt
Q3: The numbers 130.65.86.66 denote a(n) _.
A) TCP
Q6: The _ is a complex collection of
Q8: The term _ data refers to the
Q11: Each IP _ is delivered separately, and
Q13: _ has no provision for retrying an
Q14: _ _ was developed to enable different
Q17: A(n) _ is a set of instructions
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