Multiple Choice
What exception type does the following program throw? public class Test {
Public static void main(String[] args) {
Object o = null;
System.out.println(o.toString() ) ;
}
}
A) ArrayIndexOutOfBoundsException
B) ClassCastException
C) NullPointerException
D) ArithmeticException
E) StringIndexOutOfBoundsException
Correct Answer:

Verified
Correct Answer:
Verified
Q6: What is the output of running the
Q7: What is wrong in the following code?<br>Test
Q9: A subclass inherits _ from its superclass.<br>a.
Q10: The method _ overrides the following method:
Q11: Analyze the following code: public class Test1
Q11: When you implement a method that is
Q13: The program has a syntax error because
Q14: Show the output of running the class
Q15: What is the output of running class
Q16: What is wrong in the following code?<br>Test