Originally posted by Ramakrishna Nalla:
Thank you hatim and Barry...
You may misunderstood my question...
Actually, Ramakrishna, you misunderstood the answer.
Static methods are bound to the class itself, not to the objects made of that class. In other words, If a static method is defined in another class,
it's a different method, not an override. Which brings us to what Barry said:
Static methods cannot be overridden. So it is useless declaring a static method in an interface, because nothing can provide its implementation.
If you'd put a static method in an interface, you'd define a method that can not have a method body. As Barry so eloquently put it: that's a useless method.