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. ArithmeticException
b. ArrayIndexOutOfBoundsException
c. StringIndexOutOfBoundsException
d. ClassCastException
e. NullPointerException

e. NullPointerException

Computer Science & Information Technology

You might also like to view...

Show Markup is a toggle that displays or hides inserted comments and saved annotations

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) ____________________ is a diagram depicting the structure of a Web site.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology