Give the output of the following switch statement:-
switch(n)
{
case a‟: System.out.println(“one”);
break;
case „b‟: System.out.println(“two”);
break;
case „c‟: System.out.println(“three”);
break;
default: System.out.println(“wrong”);
}
Find
1) n=‟c‟ 2) n=‟m‟
Answers
Answered by
2
Answer:
1) three
2) wrong
Explanation:
The answer is given after correcting the slight typing errors
Similar questions