ExamGecko
Question list
Search
Search

Question 13 - 2V0-72.22 discussion

Report
Export

Refer to the exhibit.

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.
Answers
A.
Add @PathVariable(“id”) String accountId argument to the update() handler method.
B.
Add @PathVariable long accountId argument to the update() handler method.
Answers
B.
Add @PathVariable long accountId argument to the update() handler method.
C.
Add @RequestParam long accountId argument to the update() handler method.
Answers
C.
Add @RequestParam long accountId argument to the update() handler method.
D.
Add @RequestParam(“id”) String accountId argument to the update() handler method.
Answers
D.
Add @RequestParam(“id”) String accountId argument to the update() handler method.
Suggested answer: A

Explanation:

Reference: https://docs.spring.io/spring-framework/docs/4.3.12.RELEASE/spring-framework-reference/htmlsingle/

asked 16/09/2024
Oliver Lüthi
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first