Sr.Java Web Developer Question:
Explain me what is the life-cycle of a servlet?

Answer:
There are 5 stages in the lifecycle of a servlet:
☛ Servlet is loaded
☛ Servlet is instantiated
☛ Servlet is initialized
☛ Service the request
☛ Servlet is destroyed
☛ Servlet is loaded
☛ Servlet is instantiated
☛ Servlet is initialized
☛ Service the request
☛ Servlet is destroyed
Previous Question | Next Question |
Tell us how do you keep yourself updated about the latest web technologies? | Tell me what are the JDBC API components? |