Which of the following can be used to save the ServletConfig object in the init method of a servlet?
1. Create new instance of ServletConfig object and set the value that is returned from container.
2. We can not save the ServletConfig object as this object is created by Container
3. call super.init(config) in the init method
4. Save the ServletConfig object in a variable and override the getServletConfig method to return the object from new location
Back To Top