Delete comment from: Javarevisited
how about these Servlet questions:
1. What is initialization order of servlet ? What are lifecycle method and who calls them?
2. How Servlet and JSP are related to each other ?
3. What is Servlet Container, What are responsibilities of Servlet Container?
4. What is difference between ServletContext and ServletConfig?
5. How to control initialization of Servlet? How will you ensure pre initialization of Servlet?
6. What is difference between GenericServlet and HttpServlet?
7. What is difference between doGET() and doPOST() method?
8. Who calls doGET() and doPOST() method ?
9. Who creates object of HttpServletRequest and HttpServletResponse?
10. How do you make a Servlet thread safe ?
11. What is difference between Servlet and Filter?
12. What is lifecycle of filter?
13. How do you make your application to run using SSL?
14. How do you ensure that a particular servlet can only be accessed after authetincation?
15. How to implement authentication and authorization in Servlet application?
16. What is advantage of Servlet over CGI?
Its not easy to answer all these Servlet question and only guys who has extensive experience in Servlet and JSP can answer with confidence :)
May 21, 2012, 10:32:47 PM
Posted to Top 10 Servlet Interview Question Answers for Java JEE Developers