Inheritance and Polymorphism – Multiple Choice Questions (MCQs)
-
-
38. What is the significance of the `Object` class in Java's inheritance hierarchy?
-
39. Which methods are inherited by all Java objects from the `Object` class?
-
40. What is the purpose of the `toString()` method inherited from the `Object` class?
-
41. What is the purpose of the `equals()` method inherited from the `Object` class?
-
42. What is the purpose of the `hashCode()` method inherited from the `Object` class?
-
43. What is the purpose of the `clone()` method inherited from the `Object` class?