Oracle
1Z0-899 · Question #73
Click the Exhibit button. As a maintenance feature, you have created this servlet to allow you to upload and remove files on your web server. Unfortunately, while testing this servlet, you try to…
The correct answer is B. The servlet constructor must NOT have any parameters. See the full explanation below for the reasoning.
Question
Click the Exhibit button. As a maintenance feature, you have created this servlet to allow you to upload and remove files on your web server. Unfortunately, while testing this servlet, you try to upload a file using an HTTP request and on this servlet, the web container returns a 404 status. What is wrong with this servlet?
Exhibit
Options
- AHTTP does NOT support file upload operations.
- BThe servlet constructor must NOT have any parameters.
- CThe servlet needs a service method to dispatch the requests to the helper methods.
- DThe doPut and doDelete methods do NOT map to the proper HTTP methods.
How the community answered
(62 responses)- A2% (1)
- B84% (52)
- C5% (3)
- D10% (6)
Community Discussion
No community discussion yet for this question.
