Showing posts with label Servlet interview questions. Show all posts
Showing posts with label Servlet interview questions. Show all posts

Saturday, January 27, 2007

Servlet interview questions

Frequently asked Servlet interview questions?

Here is the list of frequently asked Servlet interview questions.

1) What is HTTP Servlet ?
2) What are the types of Servlet?
3) What is the difference between Generic Servlet and HTTPServlet?
4) What is difference between Servlet and ASP?
5) Explain the directory structory of your web application?
6) Where do you keep your web.xml file in web application?
7) Have you ever used threads in Servelet?
8) Is Servlet thread safe? How to make Servlet thread safe?
9) What is the difference between post & get method? Which one do you prefer to use?
10) What is session management? How to do it with Servlet?
11) What is ServletContext?
12) What is the difference between ServletContext and ServletConfig?
13) What is HttpSession class?
14) How do you invalidate a session using Servlet API?
15) What is the difference between redirect and forward? How can you do it using Servlet API?
16) What is the role of Servlet in MVC pattern?
17) Explain the life cycle of the Servlet?
18) Why Generic Servlet is an abstract class?
19) Do you use constructor in a Servlet class?
20) How does HTTP Servlet handle client requests?
21) What is URL rewriting and how do you using Servlets?
22) What are the differences between Servlet and Applet?
23) What is meant by Pre-initialization of Servlet?
24) What are the advantages of Servlets over CGI programs?