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 is used to annotate a method used to create resource?
AA. @path
BB. @get
CC. @put
DD. @post
Correct Answer:
C. C. @put
Explanation:
@PUT is the HTTP request that is used to create resource and also define a complete resource path. @POST may also be used to create a resource but it won’t define a resource path i.e. an accessing medium.