Question: JAVA what is the printout of the following switch statement? char ch = 'c'; switch (ch) { case 'a': system.out.print(ch); case 'b': system.out.print(ch); case 'c':
JAVA
what is the printout of the following switch statement?
char ch = 'c'; switch (ch) {
case 'a': system.out.print(ch);
case 'b': system.out.print(ch);
case 'c': system.out.print(ch);
case 'd': system.out.print(ch);
}
1.abcd
2.cc
3.bcd
4.ccc
please explain so i can learn from you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
