1(iii)
The size of '\n' is:
- (a)2 bytes
- (b)4 bytes
- (c)8 bytes
- (d)16 bytes
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.