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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!