1) Compile and run without error 2) Compile time Exception 3) Runtime Exception The answer given is a - I thought Sub s = (Sub) b; is a valis narrowing cast. What do you say ? Pallavi Edited by Corey McGlone: Broke up long line in code section to preserve page formatting. [ April 04, 2003: Message edited by: Corey McGlone ]
Pallavi, I think the given answer is wrong. It compiles fine and then throw a run time error -ClassCastException. You are right, the answer should be C or 3 : Runtime Exception
Hey! It compiles! Ship it!
I don't even know how to spell CIA. But this tiny ad does:
Gift giving made easy with the permaculture playing cards