Skip to content

Commit 73e1526

Browse files
authored
Create servletlifecycle.md
1 parent ad3e79a commit 73e1526

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Test/servletlifecycle.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
![image](https://user-images.githubusercontent.com/83420185/169653616-ffbfef1d-d48d-48f9-afd3-e979980272ab.png)
2+
3+
A servlet life cycle can be defined as the entire process from its creation till the destruction. The following are the paths followed by a servlet.
4+
5+
The servlet is initialized by calling the init() method.
6+
7+
The servlet calls service() method to process a client's request.
8+
9+
The servlet is terminated by calling the destroy() method.
10+
11+
Finally, servlet is garbage collected by the garbage collector of the JVM.
12+

0 commit comments

Comments
 (0)