Dear candidates you will find MCQ questions of JAVA here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
N
Q. What is the purpose of the "throw" keyword in Java exception handling?
V
Q. In Java, can a method throw any checked exception without declaring it using "throws"?
R
Q. What is the purpose of the "throws" keyword in Java method declaration?
V
Q. What is the result of the following code snippet? try { int[] arr = new int[5]; int value = arr[10]; } catch (ArrayIndexOutOfBoundsException e) { System.out.println("Exception Caught!"); }
Don't have account? Register here.