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

Computer Science & Information Technology

You might also like to view...

The default output of decimal numbers of the type float is up to nine decimal places.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

An IP address is the text equivalent to a website's numeric address.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

We sometimes apply the terms _______________ or vendor-specific to a closed source product or technology, most often when we are trying to highlight something that does not use common, open standards.

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

Computer Science & Information Technology

__________________________ are intentional mistakes while __________________________ are unintentional mistakes.

What will be an ideal response?

Computer Science & Information Technology