Java output type question
Q. Give the Output for the following program?
class Char {
public static void main(String args[]) {
char ch1, ch2;
ch1 = 88; // code for X
ch2 = 'Y';
System.out.print("ch1 and ch2: ");
System.out.println(ch1 + " " + ch2);
}
} - Published on 21 Jul 15a. ch1 and ch2: X Y
b. ch1 and ch2: x y
c. ch1 and ch2: 1 3
d. None of the above
ANSWER: ch1 and ch2: X Y