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] + " "); } } } }
Correct Answer: 5 4 3 1 6 8
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions