Menu
Question Index
...


Arrange the following such that the program output is 4 1 2.

  • move     case 1:
            System.out.print("1 ");
  • move     case 2:
            System.out.print("2 ");
  • move     int input = 4;
  • move     default:
            System.out.print(input + " ");
  • move     switch(input) 
        {
  • move     }
  • move         break;

Doubts

Problems

Topic: switch Statement In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App