|
Answer» 1.GenericServlet is an abstract class which IMPLEMENTS the Servlet interface and the ServletConfig interface. 2.Other than the methods included in above two interfaces, it also provides simple VERSIONS of the lifecycle methods init and destroy, and implements the log method declared in the ServletContext interface. 3.Since this class is not SPECIFIC to any protocol, it is KNOWN as GENERIC servlet. 1.GenericServlet is an abstract class which implements the Servlet interface and the ServletConfig interface. 2.Other than the methods included in above two interfaces, it also provides simple versions of the lifecycle methods init and destroy, and implements the log method declared in the ServletContext interface. 3.Since this class is not specific to any protocol, it is known as generic servlet.
|