1.

Which of the following annotation of JAX RS API is used to annotate a method used to create resource?(a) @Path(b) @GET(c) @PUT(d) @POSTI had been asked this question in a national level competition.I need to ask this question from Web Caching in division Networking of Computer Network

Answer»

The correct OPTION is (c) @PUT

The best I can explain: @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.



Discussion

No Comment Found

Related InterviewSolutions