This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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