while method overriding is runtime polymorphism ?
It's just a design decision for Java, not a dogma. Particularly, now I work with groovy (Java based language), it has runtime method overloading, dispatched at runtime. Polymorphism in this case is "have different behaviour under the same shape (same interface)". Nice Java book or "Oracle Java tutorials" can give you much more information.
Обсуждают сегодня