Java Servlet Programming Question:
Download Questions PDF

When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

Answer:

The servlet container determines which servlet to invoke based on the configuration of its servlets, and calls it with objects representing the request and response.

Download Java Servlet Programming Interview Questions And Answers PDF

Previous QuestionNext Question
What is servlet container?If a servlet is not properly initialized, what exception may be thrown?