Question
class Output {
public static void main(String args[]) {
char a = (char) 98;
a = Character.toUpperCase(a);
System.out.print(a);
}
}
What is the output of this program?
class Output {
public static void main(String args[]) {
char a = (char) 98;
a = Character.toUpperCase(a);
System.out.print(a);
}
}
Answer: Option C
Was this answer helpful ?
None.
Output:
$ javac Output.java
$ java Output
B
Was this answer helpful ?
Submit Solution