Rest - Interview Questions and Answers for 'Hcl' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Interview Questions


 2796 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Rest - Interview Questions and Answers for 'Hcl' - 3 question(s) found - Order By Newest

Very frequently asked in companies using SOA.
  Q1. What are RESTful Web Services ?Rest
Admin
info@buggybread.com
Ans. REST or Representational State Transfer is a flexible architecture style for creating web services that recommends the following guidelines -

1. http for client server communication,
2. XML / JSON as formatiing language ,
3. Simple URI as address for the services and,
4. stateless communication.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     java   web services   rest   java   j2ee  architecture     Synechron  CapitalOne  Overstock.com  Ebay  At&t  HCL Technologies  Barclays  Tata Consultancy (TCS)  Cognizant (CTS)  Wipro  Infosys  EPAM  Mphasis  verchaska infotech      intermediate        frequent


Related Questions

 Difference between GET and POST Requests ?
  Which markup languages can be used in restful web services ?
  Why Web services use HTTP as the communication protocol ?
  Name some Java REST services frameworks ?
  In Spring , Which class handles the Http requests for RESTful web services ?
 If you are given a choice to have a functionality shared either through dependency or through a Web service, which one will you choose ?
 Can we send a request body with the Get Request ? If not, What is the alternate to pass message to the Get Request ?
 What are the different ways in which information can be sent to server in web service call ?
 If Project A is calling web service of project B and there are some changes in project B, Will Project A needs to be rebuilt ?


  Q2. Difference between GET and POST Requests ?Web Service2016-07-22 15:00:21

Ans. GET is supposed to get information from the server. Client sends the minimal information so that Server can respond with the response body on basis of request. For example - You want to get complete employment record for employee id 123

POST is supposed to send the information for submission. Payload or a Body is usually sent so that it can be persisted on the server. For example - Sending the complete information of an employee ( id, name , dept etc ) to the server for persisting it.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     get vs post   web service   rest     Wayfair  Finacus Solutions  Elsevier  Cognizant (CTS)  FlipKart  Singsys  Overstock  One Click Retail  Spillman Technologies  HCL Technologies  Infosys Technologies      basic        frequent


Related Questions

  What are RESTful Web Services ?
  What are the restrictions for the entity classes ?
 In which cases using SOAP is preferred over REST ?
  What restrictions are placed on method overriding?
  If you have access to a function that returns a random integer from one to five, write another function which returns a random integer from one to seven.
  Which markup languages can be used in restful web services ?
  Why Web services use HTTP as the communication protocol ?
  Name some Java REST services frameworks ?
  Name few Restriction Methods ?


Frequently asked question in companies using Rest Web services.
 Q3. Different between POST and PUT in Rest Rest2016-07-22 14:33:40

Ans. PUT requests are only meant to place the object as it is on server. For example - You want a file to be uploaded and then placed in a particular folder or you want an Employee object to be persisted in the table.

POST requests are also meant to transfer information from client to server but that information once received at the server is evaluated , modified or refactored before persisting.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     Put vs Post   Rest     overstock.com  HCL Technologies  Tata Consultancy (TCS)  Tech Mahindra  Indra        frequent


Related Questions

 Should a Database Update Request be a POST or PUT Request in Rest
 Should a DB Insert Request be a POST or PUT request in Rest




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: