Java Servlet Programming Question:

Download Job Interview Questions and Answers PDF

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.

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?