When you communicate with a web server to obtain data, you have two choices:
I. You can make a socket connection and send GET and POST commands.
II. You can make a server connection and send GET and POST commands.
III. You can use the URLConnection class and have it issue the commands on your behalf.
IV. You can use the URL class and have it issue the commands on your behalf.
A) I and II
B) II and III
C) III and I
D) IV and II
Correct Answer:
Verified
Q64: A successful response has status code _.
A)200
Q65: What does the following if statement do?
if
Q66: When you communicate with a mail server,
Q67: A page not found has status code
Q68: Suppose you use the URLGet program in
Q69: The HTTP response code 200 means _.
A)the
Q70: The HTTP response code 404 means _.
A)the
Q71: You should use a _ to connect
Q73: What would the getResponseCode return if the
Q74: To open a connection, which of the
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