Java interview questions: – Differentiate between Servlet and Restfull web service?

Servlets are API which is simple and provides capabilities to write server side components.

Rest provides higher level support for writing services which are denoted by using the concept of resource which represents a concept to be addressed while representation indicates the current state of resource. Also Rest provides other facilities like
separation of concerns between client and server, uniform interface,stateless,Caching capability and layered architecture.

View the following video on Web services: –


Get more on java interview questions

Regards

Visit Authors blog for more Java interview Questions

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s