1.

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); } }

A. ch1 and ch2: X Y
B. ch1 and ch2: x y
C. ch1 and ch2: 1 3
D. None of the above
Answer» B. ch1 and ch2: x y


Discussion

No Comment Found