What is the output of the following program? class Upwork { public static void main(String args[]) { try { int a[]={1,2,3,4,5}; for(int i=0;i<7;i++) System.out.println(a[i]); } catch(ArrayIndexOutOfBoundsException e) { System.out.println("0"); } } }
Correct Answer: 123450
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions