Computer Science, asked by ramani1005, 4 months ago

9) find the error
b) Switch(ch) { case 1");
Break; case 3:
System.out.println("chemistry");
Break; case 4:
System.out.println(“english”);
Break; case 5:
System.out.println("maths”);
Break; Default:
System.out.println("invalid”);
}​

Answers

Answered by puneetdevman
1

Answer:

Case1"

Explanation:

"); this is wrong marking.

and the continuous number is also missing

Case1,2,3,4,5,6 and so on.

Similar questions