Oracle
1Z0-897 · Question #116
Given the class: Choose the option that describes what would happen if this class were deployed (Choose one):
The correct answer is A. Any HTTP GET or POST request with the URL "/resource" would result in a call to getName(). See the full explanation below for the reasoning.
Question
Given the class:
Choose the option that describes what would happen if this class were deployed (Choose one):
Options
- AAny HTTP GET or POST request with the URL "/resource" would result in a call to getName().
- BAny HTTP GET or POST request with URLs that begin with "/resource" would result in a call to getName().
- CA runtime error would result, since a method cannot be responsible for both GET and POST requests.
- DA compile error would result, since a method cannot be responsible for both GET and POST requests.
How the community answered
(36 responses)- A78% (28)
- B14% (5)
- C6% (2)
- D3% (1)
Community Discussion
No community discussion yet for this question.