1. When creating an object of a subclass, what happens to the members of the superclass?
2. Which of the following statements is TRUE about interfaces in Java?
3. Which of the following types of inheritance is characterized by a base class being inherited by multiple derived classes?
4. How can multiple inheritance be achieved in Java?
5. What does the 'implements' keyword signify in Java?
6. Which of the following is a correct statement about hybrid inheritance in Java?
7. What does the 'instanceof' operator check in Java?
8. Which of the following indicates a HAS-A relationship in Java?
9. What keyword is used in Java to inherit the properties of a base class into a derived class?
10. A class in Java can implement multiple interfaces. What benefit does this provide?
11. How does Java achieve reusability in code using inheritance?
12. What is method overriding primarily used for in inheritance?
13. The following is true regarding private members in Java inheritance:
14. What does the HAS-A relationship imply?
15. The "super" keyword cannot be used to:
16. How do interfaces differ from classes regarding inheritance in Java?
17. What keyword is used in Java to inherit properties from one class to another?
18. Why does Java not support multiple inheritance with classes?
19. Which concept does inheritance help implement among the following in OOP?
20. Which of the following about the 'super' keyword is NOT true?
21. What is the primary purpose of inheritance in Java?
22. What is illegal in Java inheritance?
23. In Java, what does "single inheritance" imply?
24. When using a superclass reference variable to refer to a subclass object, what members can be accessed using that reference?
25. If a subclass does not define its own constructor, which constructor is used when an object is instantiated?
26. In Java, what relationship does the "HAS-A" relationship describe?
27. In hierarchical inheritance in Java, how many base classes and derived classes are involved?
28. Given the class declaration `class Dog extends Mammal`, which of the following is correct?
29. In Java, which of the following is true about constructors in inheritance?
30. What does the 'super()' keyword in Java do?
31. What will happen if a subclass and superclass both have a method with the same signature, and the subclass's method is called on a subclass object?
32. What is the relationship called when a subclass is a type of its superclass?
33. Which of the following shows an example of Java Hierarchical Inheritance?
34. Which of the following declarations is illegal in Java?
35. Inheritance where a class inherits from another, which in turn is inherited by another class, is called:
36. Why is multiple inheritance avoided in Java with classes?
37. What does the 'super' keyword in Java allow a subclass to do?
38. Which statement is true about the instanceof operator in Java?
39. Which constructor is automatically acquired by a subclass in Java?
40. What will be printed if `obj1.printOne()` is called where obj1 is an instance of class Two which extends One with method `printOne()` in class One?
41. What is NOT a feature of inheritance in Java?
42. How is method overriding achieved in Java inheritance?
43. Java supports which inheritance type(s)?
44. What will happen if a subclass and superclass both have a method with the same name and signature?
45. In Java, which keyword differentiates a subclass variable or method from a superclass variable or method when both have the same name?
46. If class Dog extends Mammal and Mammal implements Animal, which of the following is true?
47. In multilevel inheritance, which statement is true?
48. Which class is called the superclass in Java inheritance?
49. Which of the following best describes single inheritance in Java?
50. Which of the following statements about the 'instanceof' keyword is correct?