Devaka Cooray wrote:Answer for your question is it is because abstract methods cannot be overridden.
This question has nothing to do with Servlets. I'm moving this to BJ forum.
I think Devaka meant to say that
static methods cannot be overridden. (As explained in the link above.) Meanwhile abstract methods
must be overridden. Thus, static methods and abstract methods are fundamentally incompatible.
Deepak: to understand this better, think about this: if a method is abstract, and there are two or more classes that override the method, how does the JVM decide at runtime which version of the method should be executed? And how would this work for a static method?