1. A static method can’t be overridden as non-static.

    تداول الاسهم بالراجحي class Parent{ public static void m2(){ System.out.println("Parent:m2() method"); } } class Child extends Parent{ public void m2(){ System.out.println("Child:m2() method"); } } /* Compile time error: This instance method cannot override the static method from Parent. */

  2. Similarly a non-static method can’t be overridden as static method.
  3. If both parent and child class methods are static,then there is no compile time error or run time error.It seems that overriding is happened but it is not overriding this concept is called “ شريط اسهم Method hiding“.
  4. All the rules of method hiding are exactly similar to overriding except both methods declared as static.
  5. In the case of method hiding method resolution will take care by compiler based on reference type(But not runtime object).

    http://www.iwiseconsulting.com/?pokib=%D8%B3%D8%B9%D8%B1-%D8%A7%D9%84%D8%B3%D9%87%D9%85-%D8%A8%D9%86%D9%83-%D8%A7%D9%84%D8%A7%D9%87%D9%84%D9%8A&c61=3f سعر السهم بنك الاهلي public class OverridingDemo { public static void main(String[] args) { Parent parent=new Parent(); parent.m2(); Parent parent1=new Child(); parent1.m2(); Child child=new Child(); child.m2(); } } class Parent{ public static void m2(){ System.out.println("Parent:m2() method"); } } class Child extends Parent{ public static void m2(){ System.out.println("Child:m2() method"); } } /* Output: Parent:m2() method Parent:m2() method Child:m2() method */

  6. In the case of method hiding the method resolution will take care by compiler based on reference type. Hence method hiding is considered as “ استراتيجية فوركس static polymorphism” or “ توصيات مجانية فوركس compile time polymorphism” or “ http://ywamissionary.com/?kilir=%D9%85%D9%86%D8%AA%D8%AF%D9%89-%D8%A7%D9%84%D8%A7%D8%B3%D9%87%D9%85-%D8%A7%D9%84%D8%B3%D8%B9%D9%88%D8%AF%D9%8A-%D8%A7%D9%84%D9%8A%D9%88%D9%85&6d5=49 منتدى الاسهم السعودي اليوم early binding“.