The size of '\n' is:

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

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

The size of '\n' is:

Show SolutionHide Solution↓

2 bytes

Reason — In Java, \n (newline character) is a character literal. All character literals in Java, including escape sequences like \n, are stored as char data type, which occupies 2 bytes (16 bits) in memory.

← Previous questionNext question →

Browse the free Computer Applications sample bank