English

Find the output of the following program snippet: char ch = 'A'; char chr = Character.toLowerCase(ch); int n = (int)chr - 32; System.out.println(Char)n + "\t" + chr); - Computer Applications

Advertisements
Advertisements

Question

Find the output of the following program snippet:

char ch = 'A'; 
char chr = Character.toLowerCase(ch); 
int n = (int)chr - 32; 
System.out.println(Char)n + "\t" + chr); 
One Line Answer

Solution

A  a

shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Library Classes - EXERCISES [Page 178]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 2 Library Classes
EXERCISES | Q IV. 8. | Page 178
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×