Question: switch(lastInitial) case 'A: System.out.printin(section 1); break; case 'B': System.out.println(section 2); break; case C' System.out.println(section 3); break; case D': System.out.println(section 4 ); break; default: System.out.println(section 5);
switch(lastInitial) case 'A: System.out.printin("section 1"); break; case 'B': System.out.println("section 2"); break; case C' System.out.println("section 3"); break; case "D': System.out.println("section 4 "); break; default: System.out.println("section 5"); 44. Based on the code above, what is the output if lastInitialA'? (a) section 1 (b) section 3 (c) section 2 (d) section 5 switch(lastInitial) case 'A: System.out.printin("section 1"); break; case 'B': System.out.println("section 2"); break; case C' System.out.println("section 3"); break; case "D': System.out.println("section 4 "); break; default: System.out.println("section 5"); 44. Based on the code above, what is the output if lastInitialA'? (a) section 1 (b) section 3 (c) section 2 (d) section 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
