Computer Applications
Find the output of the following program snippet:
int n = 97;
char ch = Character.toUpperCase((char)n);
System.out.println(ch + " Great Victory");
Related Questions
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);
Find the output of the following program snippet:
char ch = 'x'; int n = 5; n = n + (int)ch; char c = (char)n; System.out.println((char)((int)c-26));
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);
Find the output of the following program snippet:
char c = 'B'; int i = 4; System.out.println(c+i); System.out.println((int)c+i);