Computer Science, asked by 8472, 5 months ago


10. What is the output of the following switch statement ?
char ch = 'b';
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);
}​

Answers

Answered by rzope5923
22

Answer:

output will be b c d does not contain break statement.

Answered by rishitasingh9c11623m
2

Answer:

bbb

Explanation:

no break statement is used

Similar questions