| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Assertion (A): Encapsulation is the process of wrapping data and methods into a single unit. Reason (R): Encapsulation helps in data hiding. | |||||||||||||||||||||||||
2 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
3 | Assertion (A): Inheritance allows a class to use the properties and methods of another class. Reason (R): Inheritance promotes code reusability. | |||||||||||||||||||||||||
4 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
5 | Assertion (A): Polymorphism allows methods to perform different tasks based on the object that invokes them. Reason (R): Polymorphism enhances the flexibility of code. | |||||||||||||||||||||||||
6 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
7 | Assertion (A): An abstract class cannot be instantiated. Reason (R): Abstract classes can have abstract methods. | |||||||||||||||||||||||||
8 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
9 | Assertion (A): Interfaces in Java can have method implementations. Reason (R): Java 8 introduced default and static methods in interfaces. | |||||||||||||||||||||||||
10 | (b) Assertion is true and Reason is false. | |||||||||||||||||||||||||
11 | Assertion (A): Method overriding occurs when a subclass provides a specific implementation of a method already defined in its superclass. Reason (R): Overriding allows runtime polymorphism. | |||||||||||||||||||||||||
12 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
13 | Assertion (A): The super keyword is used to access the members of the parent class. Reason (R): The super keyword can be used to call the parent class constructor. | |||||||||||||||||||||||||
14 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
15 | Assertion (A): A class that is declared final cannot be subclassed. Reason (R): Final classes prevent inheritance to ensure security and prevent modification. | |||||||||||||||||||||||||
16 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
17 | Assertion (A): Multiple inheritance is not supported in Java through classes. Reason (R): Java supports multiple inheritance through interfaces. | |||||||||||||||||||||||||
18 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
19 | Assertion (A): Object cloning is achieved using the clone() method. Reason (R): The clone() method is defined in the Cloneable interface. | |||||||||||||||||||||||||
20 | (b) Assertion is true and Reason is false. | |||||||||||||||||||||||||
21 | Assertion (A): The this keyword refers to the current object instance. Reason (R): this can be used to call other constructors in the same class. | |||||||||||||||||||||||||
22 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
23 | Assertion (A): Static methods can be overridden in Java. Reason (R): Static methods are inherited by subclasses. | |||||||||||||||||||||||||
24 | (d) Assertion and Reason both are false. | |||||||||||||||||||||||||
25 | Assertion (A): Constructors can be private in Java. Reason (R): Private constructors are used in singleton patterns. | |||||||||||||||||||||||||
26 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
27 | Assertion (A): instanceof operator checks whether an object is an instance of a specific class or interface. Reason (R): instanceof helps in safe type casting. | |||||||||||||||||||||||||
28 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
29 | Assertion (A): Method overloading is the process of defining multiple methods with the same name but different parameter lists. Reason (R): Overloading is resolved at runtime. | |||||||||||||||||||||||||
30 | (b) Assertion is true and Reason is false. | |||||||||||||||||||||||||
31 | Assertion (A): Abstract methods do not have a body. Reason (R): Abstract methods must be implemented in subclasses. | |||||||||||||||||||||||||
32 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
33 | Assertion (A): An interface can extend multiple interfaces. Reason (R): This allows interfaces to inherit abstract methods from multiple sources. | |||||||||||||||||||||||||
34 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
35 | Assertion (A): The final keyword prevents method overriding. Reason (R): A final method cannot be modified by subclasses. | |||||||||||||||||||||||||
36 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
37 | Assertion (A): Inner classes can access the members of their enclosing class. Reason (R): This provides better encapsulation and simplifies code maintenance. | |||||||||||||||||||||||||
38 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
39 | Assertion (A): An abstract class can have both abstract and non-abstract methods. Reason (R): Abstract classes provide a base for subclasses to build upon. | |||||||||||||||||||||||||
40 | (a) Assertion and Reason both are correct. | |||||||||||||||||||||||||
41 | ||||||||||||||||||||||||||
42 | ||||||||||||||||||||||||||
43 | ||||||||||||||||||||||||||
44 | ||||||||||||||||||||||||||
45 | ||||||||||||||||||||||||||
46 | ||||||||||||||||||||||||||
47 | ||||||||||||||||||||||||||
48 | ||||||||||||||||||||||||||
49 | ||||||||||||||||||||||||||
50 | ||||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | ||||||||||||||||||||||||||
53 | ||||||||||||||||||||||||||
54 | ||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||
57 | ||||||||||||||||||||||||||
58 | ||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 |