The scope of ServletContext is:
- Application
- Page
- Request
- Session
The ServletContext has the scope of the entire application (web context). It is used to share information across servlets in the same web application and is often used for initialization and configuration.
Loading...
Related Quiz
- What is the first method called in the lifecycle of a servlet?
- In what scenarios is CallableStatement preferable over PreparedStatement?
- The __________ method is used to initialize the filter with configuration parameters.
- _________ is a technique used to minimize the cost of repeatedly executing similar SQL queries.
- What is the purpose of implementing the HttpSessionBindingListener interface?