Threads in the Server
- The life-cycle of a servlet is:
- Create and initialize servlet.
- Handle zero or more calls from clients.
- Destroy servlet and garbage collect it.
- Only one instance is kept in memory. No need to keep
creating instances.
- Helps the program maintain state (local variables, connections, etc.).
José M. Vidal
.
16 of 89