Q5. What is JAX-RS API?
Java API for RESTful Web Services (JAX-RS) is the Java API for creating REST web services. JAX-RS uses annotations to simplify the development and deployment of web services. JAX-RS is part of JDK, so you don’t need to include any another library to use it’s annotations.
What are HTTP methods supported by REST?
Q6. What is a resource in a REST?
A resource is a unique URL with representation of an object, which we can get contents via GET and modify via PUT, POST, DELETE
Q7. Whether can use GET request instead of POST to create a resource?
The best practices says NO. But developer with of knowledge are doing in the industry.
Q8. What is the difference between PUT and POST?
Usually, PUT http method used when you update a resource. For example, if know that an article resides at http://mysoftkey.com/top/23, can PUT a new resource representation of this topic through a PUT on this URL. If do not know the actual resource location for instance, then add a new topic, use POST.
PUT is idempotent, while POST is not. It means if use PUT an object twice, it has no effect.
1 thought on “RESTful Web services Interview Questions and Answers”
explained in good way but I tried to but not get chance to run..