MCQs > IT & Programming > Java > 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'); } } }

Java MCQs

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"); } } }

Answer

Correct Answer: 123450

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