Question: In Java, What will be stored into the char grade? int gradeNum = 8 ; char grade = switch gradeNum ) { case 1 ,
In Java, What will be stored into the char grade?
int gradeNum ;
char grade switch gradeNum
case C;
case B;
case A;
;
This is not a proper switch statement so this will raise an error
C
B
A
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
