1. Which is a correct insight about the relationship between reference variables and objects in Java polymorphism?
2. When an overridden method exists in a child class, which version is invoked during runtime if the reference variable type is the parent class?
3. What keyword is used in a child class to call the overridden method of its parent class?
4. Which statement is TRUE about Java objects and the IS-A test in polymorphism?
5. Which of the following declarations is illegal given `Deer d = new Deer();`?
6. Can the type of a reference variable in Java be changed once declared?
7. What does it mean to say "a Deer IS-A Object" in the context of polymorphism?
8. What happens if a subclass does not override a method of its parent class?
9. How does the Java compiler behave when invoking a method on a reference variable?
10. What kind of methods are overridden methods in Java considered?
11. In Java polymorphism, what is the significance of the IS-A relationship?
12. If `Object o = d;` where `d` is a `Deer` object, what methods can be invoked on `o` without casting?
13. Which of the following is NOT true for polymorphism in Java?
14. In Java polymorphism, what does it mean when a parent class reference is used to refer to a child class object?
15. Which of these statements about polymorphism in Java is FALSE?
16. What does polymorphism in Java refer to?
17. What is the output order for the constructors when creating a new Salary object?
18. How does Java handle method overriding at run time?
19. Which concept explains that methods are invoked according to the actual object type, not the reference type?
20. What is a key limitation of a reference variable in Java?
21. Given the classes:
22. If we have: Animal a = new Deer(); Which methods can be invoked on 'a' without casting?
23. In method overriding, what happens when the child class uses the super keyword in its overriding method?
24. Consider the statements:
25. What is a virtual method in Java?
26. According to the document, what is the implication of declaring a reference variable as final?
27. Consider:
28. Why is mailCheck considered a virtual method in the example?
29. What happens when a reference variable method call is validated at compile time but executed at runtime on an overriding method?
30. What role does the reference variable's declared type play in method invocation?
31. What is the output when the `mailCheck` method is called on an `Employee` reference pointing to a `Salary` object?
32. Why does Java use virtual method invocation?
33. Is it possible for a Java class to extend multiple classes simultaneously?
34. What happens when a final method is overridden?
35. Which of the following declarations is NOT legal considering the class hierarchy: Deer extends Animal and implements Vegetarian?
36. What is required for a child class to override a parent’s method?
37. In the context of the provided example, what role does the setSalary method play?
38. Which is true about the `toString()` method in Java?
39. Which type of reference variable allows invoking methods on an object in Java?
40. How does Java handle method overriding during compile time?
41. What kind of inheritance allows a class to implement multiple interfaces or extend a class and implement interfaces in Java?
42. In the polymorphic example, which class does the interface `Vegetarian` represent?
43. Given `public class Salary extends Employee`, which statement is FALSE?
44. Which of the following statements about reference variables in Java is TRUE?
45. Can a reference variable in Java reference an object of a subtype?
46. Which is the correct statement about the final keyword with reference variables?
47. What does the declaration `Animal a = new Deer();` demonstrate?
48. Which of the following is an example of method overriding?
49. Why does the output show “Within mailCheck of Salary class” when calling mailCheck using an Employee reference variable?
50. What does it mean when we say "Overridden method is invoked at runtime no matter the data type of reference"?