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.
Loading...
Related Quiz
- Initialization parameters for a servlet are configured in the _________ file.
- In a servlet, how can you log an exception along with the stack trace?
- The ________ method of the HttpServletResponse object is used to send an error response to the client with a status code and a descriptive message.
- What is the primary purpose of a filter chain in a servlet environment?
- What is the difference between filter chaining and servlet chaining?