Q. Give the Output for the following program

Code:
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) ch1 and ch2: X Y

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
314
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Jatin Dubey
Publisher
πŸ“ˆ
89%
Success Rate