Multiple choice technology programming languages

Who is loading the init() method of servlet?

  1. Web Server

  2. Web container

  3. Super Class

  4. None of the above

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

The servlet container (such as Tomcat or Jetty) is responsible for managing the servlet lifecycle, which includes instantiating the servlet class and invoking its init() method.