Thursday 19 July 2012

Servlet Interview Questions


  1. What is Servlet?
  2. Why is Servlet so popular? 
  3. What is servlet container? 
  4. When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
  5. If a servlet is not properly initialized, what exception may be thrown?
  6. Given the request path below, which are context path, servlet path and path info?
  7. What is filter? Can filter be used as request or response?
  8. When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
  9. What is new in ServletRequest interface ? (Servlet 2.4) 
  10. Request parameter How to find whether a parameter exists in the request object?

No comments:

Post a Comment