MCQs > IT & Programming > Java > Output of the given console application? public class Main { public static void main(String[] args) { final int X = 9; int[][] a = {{5, 4, 3}, {9, 7, 2}, {1, 6, 8}}; for (int i=0; i<3; i++) { for (int j=0; j<3; j++) { if (a[i][j] == X) break; System.out.print(a[i][j] + ' '); } } } }

Java MCQs

What is the output of the given console application? public class Main { public static void main(String[] args) { final int X = 9; int[][] a = {{5, 4, 3}, {9, 7, 2}, {1, 6, 8}}; for (int i=0; i<3; i++) { for (int j=0; j<3; j++) { if (a[i][j] == X) break; System.out.print(a[i][j] + " "); } } } }

Answer

Correct Answer: 5 4 3 1 6 8

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it