Computer Applications

System.out.println('Z' + 32); will display:

  1. z
  2. Z
  3. 122
  4. 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