Multiple choice general knowledge science & technology

Which of the following tag in web.xml ,identifies a name-value pair for the ServletContext object

  1. <init-param>

  2. <context>

  3. <context-param>

  4. <context-value>

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

The tag in web.xml defines name-value pairs for the ServletContext, making parameters accessible to all servlets in the application. is for servlet-specific parameters (within ), and and are not valid web.xml tags.