1(xvi)
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
Show SolutionHide Solution↓
Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A)
Reason — The Integer class can indeed be used in a program without explicitly importing any package. This is because it is part of the java.lang package, which is automatically imported in every Java program by default.