int f = 97;
char ch2 = Character.toUpperCase((char)f);
System.out.println(ch2 +"Great Victory");
Answers
Answered by
4
Output:
AGreat Victory
Explanation:
As, Unicode for 'a' is 97,
So, as ch2 is uppercase 'a' i.e., 'A' and is concatenated to "Great Victory",
Hence, "AGreat Victory".
Answered by
2
Question:-
- Write the output of the following code.
Steps:-
Given code,
int f=97;
char ch2=Character.toUpperCase((char)f);
System.out.println(ch2+"Great Victory");
ASCII value of a is 97.
Now, a is converted to uppercase
So,
result is AGreat Victory
Output:-
AGreat Victory
Similar questions
India Languages,
3 months ago
English,
3 months ago
Biology,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
History,
1 year ago