Java Servlet Programming Question:

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

Java Servlet Programming Interview Question
Java Servlet Programming Interview Question

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.


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