What is wrong with the following switch statement?
switch(i == 10) { case '1': ++i; //ww w . j a v a 2 s.c om break; case "2": --i; case 3: i *= 5; break; default i %= 3; }
A, C, and E.
The switch condition must be an integer expression.
The case values must evaluate to integer values during compilation.
A :
should follow the default label.