What is true about Servlet’s service method?(Choose all that apply)

  1. The service() method is the heart of the servlet.

  2. Each request message from a client results in a single call to the servlet's service() method

  3. The service() method reads the request and produces the response message from its parameters

  4. The service() method is called to allow your servlet to clean up any resources before the servlet is unloaded.

  5. The InputStream from the client can be obtained via the getInputStream() method


Correct Option: A,B,C,E

Find more quizzes: