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
22
Answer:
output will be b c d does not contain break statement.
Answered by
2
Answer:
bbb
Explanation:
no break statement is used
Similar questions
Physics,
4 months ago
Math,
4 months ago
Math,
4 months ago
Computer Science,
9 months ago
Physics,
1 year ago
Social Sciences,
1 year ago