) What is the output of the following switch statement?
char c=’a’;
switch(c){
case ‘a’:System.out.print(“1”);
case ‘b’: System.out.print(“2”);
case ‘c’: System.out.print(“3”);
}
System.out.println(“Done”);
Answers
Answered by
0
The output will be:
1
Done
Similar questions
World Languages,
2 months ago
Science,
2 months ago
Math,
2 months ago
Science,
4 months ago
Political Science,
11 months ago
History,
11 months ago
Math,
11 months ago