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.

Suggest An Answer

No suggestions avaliable!

Latest post from Servlet Interview questions

Ask Question