nerdexam
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)
  • A
    78% (28)
  • B
    14% (5)
  • C
    6% (2)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-897 Practice