1.
What is method overriding in Java?

2.
What is the purpose of method overloading in Java?

3.
In method overriding, which keyword is used in the child class to indicate that a method is intended to override a superclass method?

4.
What happens when a subclass tries to override a final method from the superclass in Java?

5.
What is method hiding in Java?

7.
Which method is called during method overriding in Java if the superclass method is invoked using the "super" keyword?

8.
In Java, can a subclass override a private method from its superclass?

9.
What is the result of the following code snippet?

class Parent {
void display() {
System.out.println("Parent");
}
}
class Child extends Parent {
void display() {
System.out.println("Child");
}
}
public class Main {
public static void main(String[] args) {
Parent obj = new Child();
obj.display();
}
}