MCQs City stays free thanks to ads. Please turn off your ad blocker for this site so content and features keep working.
Computer Networks
Web Caching
Q
Which of the following annotation of JAX RS API binds the parameter passed to method to a HTTP matrix parameter in path?
AA. @pathparam
BB. @queryparam
CC. @matrixparam
DD. @headerparam
Correct Answer:
C. C. @matrixparam
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.