AMA University Answers
Login
Register
AMA OED
Courses
ITE
ITE-6104
what will be the output if you...
what will be the output if you execute this code?int x=1;switch(x){case 1: System.out.print("1");case 2: System.out.print("1");case 3: System.out.print("1");default: System.out.print("1");}
None of the above}
display 1234
display nothing
display 1111
Correct
display 1
Similar ITE-6104 questions
What will be the output if you execute this code?do{System.out.println("Hello World!");}while(true);...
Which statement will check if x is equal to y?
What will be the value of x after executing this codefor(int x=0; x<=10; x++) {} is run?
Which is not a repetition control structure?
Which of the following has the correct form for an if statement?
What is the output of the code snippet below: int[] intArray = new int[10];for(int x = 0;...