) 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