Advertisements
Advertisements
Question
System.out.println(‘Z’+32); will display ______.
Options
z
Z
122
154
MCQ
Fill in the Blanks
Advertisements
Solution
System.out.println(‘Z’+32); will display 122.
Explanation:
The ASCII value of the character ‘Z’ is 90; therefore, adding 32 to it gives the value 122.
shaalaa.com
Is there an error in this question or solution?
2024-2025 (March) Official Board
