What is the first method called in the lifecycle of a servlet?
- destroy()
- doGet()
- init()
- service()
The init() method is called when a servlet is first loaded into memory and is used for initialization purposes.
Loading...
Related Quiz
- How are requests forwarded from servlets to the appropriate view in an MVC framework?
- What is the function of FilterMapping in a web application?
- For optimal servlet performance, session data should be kept to a minimum, utilizing ________ for state management.
- _________ scaling involves adding more resources to the existing servers.
- How do you set a parameter in a PreparedStatement?