Assertion (A): Integer class can be used in the program without calling a package.

ICSE Class 10 Computer Applications PYQ · 2025 Specimen · Section A

1(xvi)1 Mark · 2025 · Section A · 2025 Specimen

Assertion (A): Integer class can be used in the program without calling a package.

Reason (R): It belongs to the default package java.lang.

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.

← Previous questionNext question →

Browse the free Computer Applications sample bank