The ServletConfig interface is implemeneted by the servlet engine in order to pass configuration information to a servlet. The server passes an object that implements the ServletConfig interface to the servlet's init() method.
The ServletContext interface provides informaion to servlets regarding the enviornment in which they are running. It also provides standard way for servlets to write events to a log file.