Question
class Output {
public static void main(String args[]) {
int a = Character.MIN_VALUE;
System.out.print((char)a);
}
}
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
Was this answer helpful ?
Character.MIN_VALUE returns the smallest character value, which is of space character ' '.
Output:
$ javac Output.java
$ java Output
Was this answer helpful ?
More Questions on This Topic :
Question 10.
Which of these class have only one field?
....
Submit Solution