Computer Applications
System.out.println('Z' + 32); will display:
- z
- Z
- 122
- 154
Values & Data Types Java
8 Likes
Answer
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.
Answered By
4 Likes
Related Questions
Character class methods are found in the package called:
- java.util
- java.lang
- java.awt
- java.io
double x[] = {2.5, 4.5, 5.5, 6.4}; occupies …………… bytes.
- 16
- 4
- 8
- 32
The output of 42 / 6 % 2 is:
- 1
- 10
- 2
- 0
Consider the two-dimensional array P[2][3], of peripherals (input/output devices) given below, state the index of the device Barcode Scanner.
![Consider the two-dimensional array P[2][3], of peripherals (input/output devices) given below, state the index of the device Barcode Scanner. ICSE 2025 Computer Applications Solved Question Paper.](https://cdn1.knowledgeboat.com/img/abp10/1/q1-5-icse-computer-board-2025-year-1134x730.png)
- P[1][1]
- P[0][1]
- P[1][2]
- P[0][0]