The HttpServlet doesnot contain any abstract methods.But, still it is declared as abstract because to prevent instantiation of HttpServlet. HttpServlet contains implementations of all the Http methods to send error information. So if you crreate an instance of HttpServlet and try to acess the methods we will get error information so the HttpServlet class is declared as abstract.
No comments:
Post a Comment