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”); }
display 1111
Correct
Feedbacks
WetWalrus
-
2 years ago
Downvoted: 111
Similar ITE-6104 questions
What will be the value of x after executing this code for(int x=0; x<=10; x++) {} is run?
What will be the value of x after you execute this statement int z=0; for(int x=0; x
What is the output of the code snippet below: int[] intArray = { 1, 2, 3, 5, 6, 7 }; for(int x = int...
What will be the output if you execute this code: int a[] = new int[1]; System.out.println(a[1]);
Which of the following is the correct syntax to define a method?
what will be the output if you execute this code? int x=2; switch(x){ case 1: System.out.print(“1”);...