The default value of a boolean variable is:

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

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

The default value of a boolean variable is:

Show SolutionHide Solution↓

false

Reason — In Java, the default value of a variable depends on its data type. For a boolean variable, the default value is false (in lowercase). This is because Java uses the primitive boolean type, which has only two possible values: true or false.

← Previous questionNext question →

Browse the free Computer Applications sample bank