h)switch (ch) {
case 'c':
case'C':
System.out.print("COMPUTER");
case'h':
case 'H':
System.out.print("HINDI");
break;
default:
System.out.print("PHYSICAL EDUCATION ");
From the above snippet,predict the output (Give reason)
when the value of ch: i) c or C ii) g or G
Answers
Answered by
0
Answer:
c or C will give answer COMPUTER and g or G will give answer PHYSICAL EDUCATION
Similar questions