1(ii)
System.out.println('Z' + 32); will display:
- (a)z
- (b)Z
- (c)122
- (d)154
Show SolutionHide Solution↓
122
Reason — In the statement System.out.println('Z' + 32);, the character 'Z' is converted to its ASCII value 90, and then 32 is added to it, giving the result 122. Since the + operator with a character and an integer results in an integer, the output displayed will be 122.