What is the first method called when a filter is instantiated by the servlet container?
- destroy()
- doFilter()
- filterInit()
- init()
The filterInit() method is the first method called when a filter is instantiated by the servlet container. It is used for initialization purposes.
Loading...
Related Quiz
- The strategy of storing only the differences from the main data set in cache is known as __________ caching.
- In an advanced MVC framework, how is the decision made in a servlet to select a specific view based on business logic?
- What happens if a filter in the filter chain does not call the doFilter() method?
- How do you differentiate between checked and unchecked SQL exceptions?
- What is the purpose of the FilterConfig object in Servlet filters?