Why HTTPServlet is an abstract class? Any functional reason?
问题 HttpServlet is an abstract class with all implemented methods. Why it is abstract? The most common answer I got is, to restrict the instantiation of HttpServlet . But there are other ways of doing it, like a private constructor will restrict the instantiation. I can understand that they are following Template Method design pattern. If some methods are abstract, user will end up implementing all of them, even if he does not need them for his business logic. But if HttpServlet was not abstract,