Java Servlet Programming Question: Download Java Servlet Programming PDF

When a servlet accepts a call from a client, it receives two objects. What are they?

Tweet Share WhatsApp

Answer:

ServeltRequest: which encapsulates the communication from the client to the server.
ServletResponse: which encapsulates the communication from the servlet back to the client.
ServletRequest and ServletResponse are interfaces defined by the javax.servlet package.

Download Java Servlet Programming PDF Read All 26 Java Servlet Programming Questions
Previous QuestionNext Question
What’s the Servlet Interface?What is Java Servlet?