When refactoring a servlet to make it more configurable, what changes are made regarding initialization parameters?
- Introduce new initialization parameters
- Keep the existing parameters unchanged
- Remove all initialization parameters
- Replace parameters with hardcoding
In the process of making a servlet more configurable, one typically introduces new initialization parameters rather than removing or replacing existing ones. This allows for greater flexibility without disrupting existing functionality.
Loading...
Related Quiz
- Load balancing is critical in a _________ architecture to distribute traffic evenly across servers.
- What is the purpose of the AsyncContext in asynchronous servlets?
- The strategy of storing only the differences from the main data set in cache is known as __________ caching.
- Which XML element is used to declare a filter in a web application's deployment descriptor?
- In which scenario would you use HttpSessionIdListener?