Multiple Choice
To retrieve the response code and message from an HttpURLConnection object, you need __________________.
A) to use the getInputStream() method.
B) to use the getURLConnection() method.
C) to use the getResponseCode() and getResponseMessage() methods.
D) to use the getCodeResponse() method.
Correct Answer:

Verified
Correct Answer:
Verified
Q20: Suppose you use the URLGet program in
Q21: When you communicate with a web server
Q22: Buffering the characters means:<br>A)characters are immediately sent
Q23: A _ is an object that encapsulates
Q24: _ has built-in provisions for retrying incomplete
Q26: The _ method empties the buffer and
Q27: To open a connection, which of the
Q28: To kill a server that was started
Q29: If your data gets lost or garbled
Q30: Which HTTP command supplies input to a