Pergunta de entrevista da empresa Nucsoft

why static ia not allowed in method overriding

Resposta da entrevista

Sigiloso

12 de abr. de 2018

In method overriding, binding is resolved at runtime whereas static methods are bonded using static binding. Also static method is shared by all the objects of the class and if you override it that means you are changing its property. hence java does'nt allows to override static method.