Question
What is the output of this program?
class Output {
public static void main(String args[]) {
int a = Character.MAX_VALUE;
System.out.print((char)a);
}
}
Answer: Option A Character.MAX_VALUE returns the largest character value, which is of character '?'.
Output:
$ javac Output.java
$ java Output
?
Was this answer helpful ?
Submit Comment/FeedBack