ExamVeda
Login
Home
This question belongs to Java Program Flow Control
Flow Control
?

What is the printout of the following switch statement?
char ch = 'a';  
switch (ch){
      case 'a':
      case 'A': System.out.print(ch); break;
      case 'b':
      case 'B': System.out.print(ch); break;
      case 'c':
      case 'C': System.out.print(ch); break;
      case 'd':
      case 'D': System.out.print(ch);
}

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Vimlesh Yadav
Vimlesh Yadav 7 years ago
switch is not case sensitive.