Java Servlet Programming Question:
Download Questions PDF

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

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 Interview Questions And Answers PDF

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