Which method is used to retrieve a servlet's initialization parameter in the servlet code?
- getInitParam()
- getServletConfig().getInitParameter()
- getServletContext().getInitParam()
- request.getParameter()
The method getServletConfig().getInitParameter() is used to retrieve a servlet's initialization parameter in the servlet code.
Loading...
Related Quiz
- Servlets are often used for processing and sending the ______ to the client.
- In distributed systems, what is a cache stampede and how is it typically mitigated?
- How can you track attribute changes in the HttpSession object?
- What is the correct order of method invocation in a filter's lifecycle?
- What is the impact of synchronization on servlet performance?