V
Q. What will be the output of the following Java 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"); } } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. The following fraction of code
Q. Which attribute is used to specify class name of the bean?
Q. What is the range of the int data type?
Q. What is the default buffer size used by any buffered class?
Q. Which Java version introduced the feature Autoboxing and Unboxing?
Q. Which of the following is a valid declaration of a char?
Discusssion
Login to discuss.