1z0-900 Exam QuestionsBrowse all questions from this exam

1z0-900 Exam - Question 3


Given the code fragment:

Which URL triggers the invocation of the getEmployee () method?

Show Answer
Correct Answer: B

The `@Path` annotation in the given code fragment specifies that the path must match the pattern "{id:[A-Z][0-9]+}". This means the URL must contain an 'id' value that starts with an uppercase letter followed by one or more digits. Therefore, the correct URL that triggers the invocation of the getEmployee() method is <base url>/Employees/J6349, making option B correct.

Discussion

4 comments
Sign in to comment
WilsonKKerllOption: B
Jun 6, 2022

Answer is B.

YasinGaberOption: A
May 10, 2022

A is correct as per some other sites

orjavaOption: B
Jan 7, 2024

correct is B

peteVlnOption: B
Apr 23, 2024

No doubt: answer is B