Java | Inheritance | Question 3ReadDiscussCoursesPracticeImprove Article ImproveSave Article SaveLike Article LikeJavaclass Base { public static void show() { System.out.println("Base::show() called"); }} class Derived extends Base { public static void show() { System.out.println("Derived::show() called"); }} class Main { public static void main(String[] args) { Base b = new Derived(); b.show(); }}(A) Base::show() called(B) Derived::show() called(C) Compiler ErrorAnswer: (A)Explanation: Like C++, when a function is static, runtime polymorphism doesn’t happen.Quiz of this QuestionLast Updated : 13 Oct, 2021Like Article Save Article Please Login to comment...