What is the difference between ServletConfig and ServletContext?

Answer

ServletConfig provides information about configuration of a servlet which is defined inside the web.xml file and it is a specific object for each servlet.

ServletContext is an application specific object and it is shared by all servlet. It belongs to one application in one JVM.

All servlets Questions

Ask your interview questions on servlets

Write Your comment or Questions if you want the answers on servlets from servlets Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---