What is servlet and its life cycle?



What is servlet and its life cycle?..

Answer / Varsha Dubey

A Servlet is a Java class that runs on a web server to handle HTTP requests. The Servlet Life Cycle consists of five phases: Loading, Instantiation, Initialization, Service, and Destruction.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

Is servlet a framework?

1 Answers  


What is api in servlet?

1 Answers  


What do you mean by servlet?

1 Answers  


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

1 Answers  


Some examples where generic servlet is used?

1 Answers  


Difference between Include, Forward and sendRedirect in Servlet?

7 Answers   AZTEC, KPIT, TCS,


What is servlet mapping?

1 Answers  


What are the uses of servlet and what is servlet chaining?

1 Answers  


How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method?

1 Answers   AZTEC,


Who is responsible to create the object of servlet?

1 Answers  


What methods do we use in Servlet to Applet communication?

3 Answers   Infosys,


What is the difference between Server and Container?

1 Answers  


Categories