Oracle
1Z0-899 · Question #64
For a given ServletResponse response, which two retrieve an object for writing text data? (Choose two.)
The correct answer is A. response.getWriter() B. response.getOutputStream(). See the full explanation below for the reasoning.
Question
For a given ServletResponse response, which two retrieve an object for writing text data? (Choose two.)
Options
- Aresponse.getWriter()
- Bresponse.getOutputStream()
- Cresponse.getOutputWriter()
- Dresponse.getWriter().getOutputStream()
- Eresponse.getWriter(Writer.OUTPUT_TEXT)
How the community answered
(50 responses)- A80% (40)
- C6% (3)
- D2% (1)
- E12% (6)
Community Discussion
No community discussion yet for this question.