✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What will happen here?
class Parent {
static void show() {
System.out.println("Parent");
}
}
class Child extends Parent {
static void show() {
System.out.println("Child");
}
}
public class Test {
public static void main(String[] args) {
Parent p = new Child();
p.show();
}
}