Top ten RESTful Web Service Interview Questions for Java Developers

REST is an architectural fashion of developing spider web services which receive got cash inward one's chips immensely pop inward the final brace of years in addition to consequently gained a lot of importance inward heart in addition to mortal Java in addition to Java EE interviews. If yous are a Java spider web developer so yous are most probable run across a brace of questions from spider web services every fourth dimension yous cash inward one's chips for a Java spider web developer interview. One of the most frequent 1 is difference betwixt REST in addition to SOAP spider web services, which I receive got of late answered there, but at that spot are lot many other goodness questions I receive got collected from friends in addition to my readers, which I receive got non nevertheless published. In this article, I am sharing those questions, mainly based on REST-style spider web services for your exercise in addition to preparation.

Some of them are slow to reply in addition to yous volition honor them either inward my weblog or past times doing Google but a brace of them is truly interesting in addition to challenging in addition to required existent corporation sense inward Java spider web service domain to answer. I exit it to yous guys for instantly in addition to volition in all likelihood update this post alongside answers inward nigh future.

If yous don't honor reply of whatsoever REST interview inquiry so I advise yous to receive got a expression at these 2 resources, Java Programming Interview Exposed and RESTful Web Services, yous volition most probable honor your reply there.



RESTful Web Services Interview Questions 

Here is my listing of RESTful spider web services questions for senior Java developers who receive got a brace of years of sense developing both SOAP in addition to REST based spider web services. This is truly the minute business office of my serial of Java spider web services based question, inward the before article, I receive got shared only about SOAP spider web services based questions. If yous receive got non looked already, yous may desire to receive got a look.




Question 1 : What is REST?
Answer : REST is an architectural fashion of developing spider web services which receive got payoff of ubiquity of HTTP protocol in addition to leverages HTTP method to define actions. REST stands for REpresntational State Transfer.


Question 2 : What is RESTFul Web Service?
Answer : There are 2 pop way to develop spider web services, using SOAP (Simple Object Access Protocol) which is XML based way to disclose spider web services in addition to minute REST based spider web services which uses HTTP protocol. Web services developed using REST fashion is besides known every bit RESTful Web Services.


Question iii : What is HTTP Basic Authentication in addition to how it works?


Question iv : Can yous tell me which API tin travel used to develop RESTFul spider web service inward Java?
Answer : There are many framework in addition to libraries out at that spot which helps to develop RESTful spider web services inward Java including JAX-RS which is measure way to develop REST spider web services. Bailiwick of Jersey is 1 of the pop implementation of JAX-RS which besides offers to a greater extent than than specification recommends. Then yous besides receive got RESTEasy, RESTlet in addition to Apache CFX. If yous similar Scala so yous tin besides role Play framework to develop RESTful spider web services.


Question v : How produce yous configure RESTFul spider web service?

Question vi : How yous apply safety inward RESTFul spider web services?

Question vii : Have yous used securing RESTful APIs alongside HTTP Basic Authentication

Question 8 : How yous keep session inward RESTful services?


Question ix : Have yous used Bailiwick of Jersey API to develop RESTful services inward Java?
Answer : Bailiwick of Jersey is 1 of the most pop framework in addition to API to develop REST based spider web services inward Java. Since many organization uses Bailiwick of Jersey they banking concern stand upwards for if candidate has used it before or not. It's uncomplicated to answer, country Yes if yous receive got truly used in addition to No, if yous receive got not. In instance of No, yous should besides shout out which framework yous receive got used for developing RESTful spider web services e.g. Apache CFX, Play or Restlet.


Question 10 : How yous bear witness RESTful spider web services?

Question xi : What is WADL inward RESTFul?


Question 12 : What produce yous empathise past times payload inward RESTFul?
Answer : Payload way information which passed within asking trunk besides payload is non asking parameters. So solely yous tin produce payload inward POST  and non inward GET in addition to DELTE method


Question thirteen : Can yous produce payload inward GET method?
Answer : No, payload tin solely travel passed using POST method.


Question xiv : Can yous produce payload inward HTTP DELETE?
Answer : This is 1 time to a greater extent than similar to previous REST interview question, reply is No. You tin solely overstep payload using HTTP POST method.


Question xv : How much maximum pay charge yous could produce inward POST method?
Answer : If yous recollect difference betwixt GET in addition to POST request so yous know that dissimilar GET which passes information on URL in addition to hence express past times maximum URL length, POST has no such limit. So, theoretically yous tin overstep unlimited information every bit payload to POST method but yous necessitate to receive got practical things into describe concern human relationship e.g. sending POST alongside large payload volition swallow to a greater extent than bandwidth, receive got to a greater extent than fourth dimension in addition to introduce surgical physical care for challenge to your server.


Question sixteen : What is divergence betwixt SOAP in addition to RESTFul spider web services?
Answer : There are many divergence betwixt these 2 fashion of spider web services e.g. SOAP receive got to a greater extent than bandwidth because of heavy weight XML based protocol but REST takes less bandwidth because of pop role of JSON every bit message protocol in addition to leveraging HTTP method to define action. This besides way that REST is faster than SOAP based spider web services. You tin derive many differences betwixt SOAP in addition to RESTful alongside the fact that its HTTP based e.g. REST URLs tin travel cached or bookmarked. Here are few to a greater extent than differences betwixt them :

 REST is an architectural fashion of developing spider web services which receive got cash inward one's chips immensely pop Top 10 RESTful Web Service Interview Questions for Java Developers


Question 17 : If yous receive got to develop spider web services which 1 yous volition conduct SOAP OR RESTful in addition to why?
Answer : You tin reply this inquiry based upon your sense but the fundamental hither is if yous know divergence betwixt them than yous tin reply this inquiry inward to a greater extent than detail. For example, its slow to develop RESTful spider web services than SOAP based spider web services but afterward comes alongside only about in-built safety features.


Question xviii :  What framework yous had used to develop RESTFul services?
Answer : This is truly sense based question. If yous receive got used Bailiwick of Jersey to develop RESTFul spider web services so reply every bit Bailiwick of Jersey but await only about follow-up inquiry on Jersey. Similarly if yous receive got used Apache CFX or Restlet so reply them accordingly.


That's all inward this listing of only about goodness RESTful spider web service interview questions for Java developers. Though this listing is meant for Java developer, yous tin role this questions to banking concern stand upwards for whatsoever candidate's noesis on REST fashion spider web services independent of programming linguistic communication because REST doesn't country that yous necessitate to implement spider web service inward Java only. Since it receive got payoff of ubiquitous HTTP protocol yous tin create backed alongside whatsoever spider web technology scientific discipline stack e.g. Java, .NET or whatsoever other.

Further Learning
REST Java Web Services
REST API Automation testing from scratch-(REST Assured java)
RESTFul Services inward Java using Bailiwick of Jersey By Bryan Hansen

P.S. - If yous are looking for online preparation to acquire how to develop RESTful Web Services inward Java using Spring framework, I advise yous joining Eugen Paraschiv's REST alongside Spring course. The course of report has diverse options depending upon your sense degree in addition to how much yous desire to acquire e.g. beginner's class, intermediate class, in addition to master copy class. You tin bring together the 1 which suits yous better, though I advise joining the master copy class if yous are serious nigh becoming an practiced Java REST developer.

Subscribe to receive free email updates:

0 Response to "Top ten RESTful Web Service Interview Questions for Java Developers"

Posting Komentar