A

Admin • 828.70K Points
Coach

Q. What is the output of Java program with SWITCH?

Code:
int num=20;
switch(num)
{
case 10: System.out.println("TEN"); break;
case 20: System.out.println("TWENTY"); break;
case 30: System.out.println("THIRTY");
}
  • (A) TEN
  • (B) TWENTY
  • (C) THIRTY
  • (D) TEN TWENTY
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.