Java Servlet Programming Question:

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

Java Servlet Programming Interview Question
Java Servlet Programming Interview Question

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.


Previous QuestionNext Question
What’s the Servlet Interface?What is Java Servlet?