hiexam
vmware · 2V0-7222 · Q606 · multiple_choice · topic_1

Refer to the exhibit. //IMG// Which option is a valid way to retrieve the account id? (Choose the best answer.)

Refer to the exhibit. //IMG// Which option is a valid way to retrieve the account id? (Choose the best answer.)
  • A.Add @PathVariable(“id”) String accountId argument to the update() handler method.
  • B.Add @PathVariable long accountId argument to the update() handler method.
  • C.Add @RequestParam long accountId argument to the update() handler method.
  • D.Add @RequestParam(“id”) String accountId argument to the update() handler method.
Explanation
Selected Answer: A A is the correct answer. Please refer to this: https://www.baeldung.com/spring-pathvariable#specifying-the-request-parameter-name

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.