What is the printout of the following switch statement?
char ch = 'a'; switch (ch){ case 'a': case 'A': System.out.print(ch); break; case 'b': case 'B': System.out.print(ch); break; case 'c': case 'C': System.out.print(ch); break; case 'd': case 'D': System.out.print(ch); }
A.abcd
B.aa
C.a
D.ab
Answers
Answered by
4
hlo mate,
your answer is C. a
your answer is C. a
Answered by
2
✔✔ Hello mate ✔✔
here's your answer
The correct option is ( C).a
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
char ch = 'a'; switch (ch){ case 'a': case 'A':
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Hope it helps you
Similar questions
Physics,
5 months ago
English,
5 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Biology,
1 year ago
Political Science,
1 year ago
English,
1 year ago