Advertisements
Advertisements
Question
Assertion (A): Integer class can be used in the program without calling a package.
Reason (R): It belongs to the default package java lang.
Options
Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
Assertion (A) is true and Reason (R) is false.
Assertion (A) is false and Reason (R) is true.
MCQ
Solution
Both Assertion (A) and Reason (R) are true and Reason (R)is a correct explanation of Assertion (A).
shaalaa.com
Basic Elements of Java Programming
Is there an error in this question or solution?