Originally posted by Haining Mu:
[B]
Answer: B,C
I think it is better to change question "what do you see" to "What is the result" , I didn't see anything on my screen for "Runtime error"[/B]
You would see the "ArrayOutOfBoundsException" on the screen however, you wouldn't see "Runtime error". Runtime error is EXACTLY what happens when you try to run the program. A runtime error occurs. The question might be a little misleading since it asks what appears on the "screen". If we just look at it strictly, then ONLY "ArrayOutOfBoundsException" appears to be a valid answer.
correct me if i'm wrong