To access all initialization parameters, the method ________ can be used, which returns an _________.

  • getInitParameterNames(), Enumeration
  • getInitParameters(), ArrayList
  • getParameters(), Array
  • getServletContext(), Enumeration
The correct method is getInitParameterNames(), which returns an Enumeration containing the names of the servlet's initialization parameters.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *