Multiple choice technology programming languages

Object parameter of init method in servlet

  1. request

  2. ServletConfig

  3. ServletContext

  4. application

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

The init method in a servlet receives a ServletConfig object as its parameter. This object contains servlet-specific initialization parameters and configuration information. ServletContext represents the entire web application context, not individual servlet configuration.