ICSE Class 10 Computer Applications Question 25 of 30

Solved 2024 Question Paper ICSE Class 10 Computer Applications — Question 30

Back to all questions
30
Question

Question 2(x)

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.

Answer

(a) java.lang

(b) import java.util.Scanner