Q: Assertion (A): Integer class can be used in the program without calling a package.
Reason (R): It belongs to the default package java.lang.
-
A
Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A)
-
B
Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion(A)
-
C
Assertion (A) is true and Reason (R) is false
-
D
Assertion (A) is false and Reason (R) is true
A
Answer:
A
Explanation:
Let's analyze carefully:
Assertion (A): Integer class can be used in the program without calling a package.
Reason (R): It belongs to the default package java.lang.
Is Reason (R) the correct explanation of Assertion (A)?
Answer: (a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A)
Related Topic:
Share Above MCQ