Give the output of the following code fragment
char c = 'a';
switch( c)
{
case'a': system.out.println("1");
case'b': system.out.println("2");
case'c': system.out.println("3");
}
Answers
Answered by
4
Explanation:
case'b': system.out.println("2");
case'c': system.out.println("3");
}
Similar questions