What exception type does the following program throw?
```
public class Test {
public static void main(String[] args) {
Object o = new Object();
String d = (String)o;
}
}
```
a. ArithmeticException
b. ArrayIndexOutOfBoundsException
c. StringIndexOutOfBoundsException
d. ClassCastException
e. No exception
d. ClassCastException
You might also like to view...
Alice's Vehicle property lets us synchronize the movements of two objects.
Answer the following statement true (T) or false (F)
Autoforwarding allows you to forward messages to other e-mail addresses automatically.
Answer the following statement true (T) or false (F)
Tapping the F2 key opens a cell for editing.
Answer the following statement true (T) or false (F)
What is the second step in the problem-solving process?
A. analyze the problem B. code the algorithm into a program C. write the documentation D. plan the algorithm