nerdexam
Oracle

1Z0-897 · Question #97

In the code fragment below, the client will use os to upload data to the web service provider. Choose the statement that must be placed in line 5, to ensure this fragment works as intended. (Choose…

The correct answer is A. connection.setDoOutput(true). See the full explanation below for the reasoning.

Question

In the code fragment below, the client will use os to upload data to the web service provider. Choose the statement that must be placed in line 5, to ensure this fragment works as intended. (Choose one)

Exhibit

1Z0-897 question #97 exhibit

Options

  • Aconnection.setDoOutput(true);
  • Bconnection.setAllowUserInteraction(true);
  • Cconnection.setIfModifiedSince(new Date().getTime());
  • Dconnection.setUseCaches(false);

How the community answered

(40 responses)
  • A
    78% (31)
  • B
    13% (5)
  • C
    8% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-897 Practice