Sail E0 Webinar
Question


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);
}
}
Options:
A .  b
B .  c
C .  B
D .  C
Answer: Option C

None.
Output:
$ javac Output.java
$ java Output
B


Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers