English

Find the output of the following program snippet: char ch= 'y'; char chr = Character.toUpperCase(ch); int p = (int) chr; System.out.println(chr+ "\t" + p); - Computer Applications

Advertisements
Advertisements

Question

Find the output of the following program snippet:

char ch= 'y'; 
char chr = Character.toUpperCase(ch); 
int p = (int) chr; 
System.out.println(chr+ "\t" + p);
One Line Answer

Solution

Y  89

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. 5. | Page 178
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×