+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

JAX-RS Interview Questions and Answers

1
Explain what is REST and RESTFUL?

REST represents REpresentational State Transfer; it is relatively new aspect of writing web services.
RESTFUL is referred for web services written by applying REST architectural concept are called RESTful services, it focuses on system resources and how state of resource should be transported over HTTP protocol to a different clients written in different language. In RESTFUL web service http methods like GET, POST, PUT and DELETE can be used to perform CRUD operations.

2
Mention some key characteristics of REST?

Some key characteristics of REST includes

  • REST is stateless, so there is no storage of session data on the client
  • With a well applied REST API, the server could be restarted between two calls as every data is passed to the server
  • Web service mostly uses POST method to make operations, whereas REST uses GET to access resources
3
Mention what are the different application integration styles?

The different integration styles includes

  • Shared database
  • Batch file transfer
  • Invoking remote procedure (RPC)
  • Swapping asynchronous messages over a message oriented middle-ware (MOM)
4
Explain how JAXB related to RESTful web services?

JAXB stands for java arch for xml binding.

5
Mention what is the difference between SOAP and REST?
SOAP REST
SOAP is a protocol through which two computer communicates by sharing XML document Rest is a service architecture and design for network-based software architectures
SOAP permits only XML REST supports many different data formats
SOAP based reads cannot be cached REST reads can be cached
SOAP is like custom desktop application, closely connected to the server A REST client is more like a browser; it knows how to standardized methods and an application has to fit inside
SOAP is slower than REST REST is faster than SOAP
It runs on HTTP but envelopes the message It uses the HTTP headers to hold meta information
Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.
FOLLOW US