Explain the difference between ServletConfig and ServletContext in Servlet?
ServletConfig | ServletContext | |
---|---|---|
1. | Parameters specified for a specific servlet. | Parameters specified for the entire application. |
2. | The object created during the initialization process. | The object created during web application deployment. |
3. | Available as long as the servlet is executing. | Available as long as the application is executing. |
BY Best Interview Question ON 18 Jan 2019