A life-cycle method of a servlet is_________________
-
init()
-
service()
-
destroy()
-
Above All
D
Correct answer
Explanation
The servlet lifecycle consists of three main phases: initialization (init() called once), service (service()/doGet()/doPost() called per request), and destruction (destroy() called once before removal). All three are lifecycle methods, making 'Above All' the correct answer.