Monthly Archives: December 2015

Java Webservice Interview Question

  1. What is difference between a URI and a Resource
  2. To understand Consider the following:

    POST: http:/mysoftkey.com/user
    GET: http:/mysoftkey.com/user/1
    PUT: http:/mysoftkey.com/user/1
    DELETE: http:/mysoftkey.com/user/1

    POST, GET, PUT, DELETE are the HTTP methods

    http:/mysoftkey.com/user, http:/mysoftkey.com/user/1 are URI’s

    user/1 is a user, which is a resource