Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. No, it's optional as the name of path param required is same as method param name in this case. Even the declaration as following should work - @Path("/{employeeId}") public String employeeInfo(@PathParam Long employeeId){ } | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  Web Service  Get service  Rest  path param | ||||
Related Questions | ||||
If given a choice , which one would you prefer to send params to the Get service , path params or query param ? | ||||
Difference between Query param and path param ? | ||||