MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? class exception_handling { public static void main(String args[]) { try { int a[] = {1, 2,3 , 4, 5}; for (int i = 0; i < 7; ++i) System.out.print(a[i]); } catch(ArrayIndexOutOfBoundsException e) { System.out.print("0"); } } } |
| A. | 12345 |
| B. | 12345A |
| C. | 12345B |
| D. | Compilation Error |
| Answer» D. Compilation Error | |