Multiple choice technology architecture

A life-cycle method of a servlet is_________________

  1. init()

  2. service()

  3. destroy()

  4. All the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Servlets have three core life-cycle methods: init() for initialization, service() for request processing, and destroy() for cleanup. All are invoked by the container at different stages of the servlet's existence.