Solved

What Exception Type Does the Following Program Throw? Public Class

Question 12

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions