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