Sail E0 Webinar
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);
}
}
Options:
A .  
B .  !
C .  @
D .  Space
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 ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers