Computer Science, asked by varchikamavi12, 2 months ago

) 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 atrs7391
0

The output will be:

1

Done

Similar questions