11.
What is the difference between method overloading and method overriding in Java?

13.
In method overriding, is it mandatory for the return type of the subclass method to be the same as the superclass method?

15.
What is the purpose of the "@Override" annotation in Java?

16.
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) {
Child obj = new Child();
obj.display();
}
}

17.
In method overloading, can methods have the same name and the same parameter types if their return types are different?

18.
What is the purpose of the "@Override" annotation in Java?

19.
Can a method be both overloaded and overridden in the same class in Java?

20.
In method overloading, can methods have the same name and the same return type if their parameter types are different?