What is the life cycle of Servlet?

Answer Posted / yogesh mudgil

The life cycle of a Servlet refers to the different phases
including its creation to its destroying.The different
phases of the life cycle of Servlet are:
1).Create Servlet
2).Create Instance
3).init()
4).service()
5).doget()/dopost()
6).destroy()

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of put method?

512


Is list ordered in java?

534


What’s a deadlock?

603


What is difference between fileinputstream and filereader in java?

554


What are variable arguments or varargs?

562






Can we have two main methods in a java class?

533


What is the biggest integer?

543


When is finally block not called?

579


What does int argc char * argv [] mean?

507


What is the benefit of lambda expressions?

486


What is "this" keyword in java? Explain

653


Where local and global variables are stored?

537


Convert a BST into a DLL and DLL to BST in place.

660


Which one of the following suits the description of a string better: derived or primitive?

502


How the interruptible method gets implemented?

551