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.