Primitive data types are built in data types which are a part of the wrapper classes. These wrapper classes are encapsulated in the java.lang package. Non…

ICSE Class 10 Computer Applications PYQ · 2024 Paper · Section A

2(x)1 Mark · 2024 · Section A · 2024 Paper

Primitive data types are built in data types which are a part of the wrapper classes. These wrapper classes are encapsulated in the java.lang package. Non primitive datatypes like Scanner class are a part of the utility package for which an object needs to be created.

(a) To which package the Character and Boolean classes belong?

(b) Write the statement to access the Scanner class in the program.

Show SolutionHide Solution↓

(a) java.lang

(b) import java.util.Scanner

← Previous questionNext question →

Share on WhatsApp

Browse the free Computer Applications sample bank