Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

RESTful Web Services Online Test

Topics Covered

  • JAX-RS based REST web services
  • RESTEasy based REST web services security
  • Jersey API based REST web service
  • RESTEasy based REST web service file upload

Useful for hiring

  • Java Web Services Developer
  • RESTful API Developer

Start hiring job-fit candidates using this assessment

GET A DEMO

"We realized that to acquire quality talent, our recruitment process was in dire need of automation. Too many of our technicalteam were simply wasting hours conducting interviews that did not yield the desired results. For us the foremost criteria were to finda recruitment partner who could tick all the right boxes"

Rehana Nisar, Gartner,
Global Product & Services Recruitment Head
Question

For the form shown below, how do we get the value passed in the input with id="name"?


    
    

Answer
    • @POST
      @Produces(MediaType.APPLICATION_JSON)
      public Response getStudent(@FormParameter("name") String name)

    • @GET
      @Produces(MediaType.APPLICATION_JSON)
      public Response getStudent(@FormParam("name") String name)

    • @POST
      @Produces(MediaType.APPLICATION_JSON)
      public Response getStudent(@FormParam("name") String name)

    • @GET
      @Produces(MediaType.APPLICATION_JSON)
      public Response getStudent(@FormParams("name") String name)

Question

How to get the response headers using Jersey ClientResponse object?

Answer
    • ClientResponse resp = webResource.accept("application/json").get(ClientResponse.class);
      MultivaluedMap<String,String> valueMap = resp.getHeaderList();

    • ClientResponse resp = webResource.accept("application/json").get(ClientResponse.class);
      MultivaluedMap<String,String> valueMap = resp.getHeaders();

    • ClientResponse resp = webResource.accept("application/json").get(ClientResponse.class);
      MultivaluedMap<String,String> valueMap = resp.getHTTPHeader();

    • None of the mentioned

Question

How can you get the list of cookies received from the REST web service using Jersey ClientResponse object?

Answer
    • ClientResponse resp = webResource.accept("application/json").get(ClientResponse.class);
      List<NewCookie> cookieList = resp.getCookieList();

    • ClientResponse resp = webResource.accept("application/json").get(ClientResponse.class);
      List<NewCookie> cookieList = resp.getCookies();

    • ClientResponse resp = webResource.accept("application/json").get(ClientResponse.class);
      List<NewCookie> cookieList = resp.getCookie();

    • None of the mentioned

Test details:

This test on RESTful web services with Java enables employers and recruiters to identify potential RESTful API developers by evaluating working skills and job readiness. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

Test Details: 20 minutes

10 Application Questions


The combination of Application questions helps to evaluate Technical as well as practical Skills of Candidates.

Test description:

Java Web Services REST Test assists Recruiters & Hiring Managers to effectively assess the skills of the Java Web Services developer before an interview. Java Web Services perform communication through WSDL (Web Services Description Language). There are two types of ways to write Java Web Services application code - SOAP and REST. Here, REST stands for Representational State Transfer which performs fast and consumes less bandwidth. This Java WebServices REST online test is designed to check the development and programming skills of Java Web Services Developer -As per Industry Standards.

RESTful Web Services Online Test contains questions on following Topics:
 

  • JAX-RS based REST web services

  • RESTEasy based REST web services security

  • Jersey API based REST web service

  • RESTEasy based REST web service file upload


This Java Webservices online REST test is designed & validated by our experienced subject matter experts (SME)s to evaluate the candidate’s knowledge about RESTful services. Using powerful reporting, you can have a detailed analysis of the test results to help you make a better hiring decision and predict the candidate’s performance.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO