What is the difference between context parameters and initialization parameters in servlets?
- Context parameters are set at the application level, while initialization parameters are specific to a servlet.
- Context parameters are used for database connectivity, while initialization parameters are used for servlet configuration.
- Initialization parameters are set at the application level, while context parameters are specific to a servlet.
- Initialization parameters are used for database connectivity, while context parameters are used for servlet configuration.
Context parameters are set at the application level and are accessible to all servlets, while initialization parameters are specific to each servlet and are defined in the servlet's deployment descriptor (web.xml).
Loading...
Related Quiz
- When a new attribute is added to the session, which listener interfaces are invoked?
- In transaction management, what does the term 'ACID' stand for?
- A developer needs to insert multiple rows into a database efficiently. Which statement type and technique should they use?
- Which listener interface is implemented to track session creation and destruction?
- Which of the following is true about ServletConfig?