English

System.out.println(‘Z’+32); will display ______. - Computer Applications

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
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×