Can we override Init method in servlet?

Overriding init() The init() method runs after the servlet is instantiated but before it accepts any requests. For more information, see the servlet API specification. When extending GenericServlet or HttpServlet, you must either override init(ServletConfig) to first call super.

Related posts: