📝 Question
#2332
Which of the following annotation of JAX RS API binds the parameter passed to method to a HTTP matrix parameter in path?
✓
Correct Answer
A. @PathParam
💡
Explanation
@MatrixParam is the annotation that binds the parameter passed to method to a HTTP matrix parameter in path, while @QueryParam binds to a query parameter, @PathParam binds to a value and @HeaderParam binds to the HTTP header in the path.
⌨️ Press
A
B
C
D
to select