A life-cycle method of a servlet is_________________
-
init()
-
service()
-
destroy()
-
Above All
D
Correct answer
Explanation
The servlet lifecycle consists of three main methods: init() (called once when servlet is initialized), service() (called for each request to handle business logic), and destroy() (called once before servlet is removed from service). All three are essential lifecycle methods, so Option D (Above All) is correct as it encompasses all of them. Option C only names destroy(), which is incomplete.