Author
casting problem
Savvy Makol
Greenhorn
Joined: Jun 03, 2003
Posts: 6
Kindly somebody explain the difference between upcasting and downcasting.When do we get classcast exception.
John Lee
Ranch Hand
Joined: Aug 05, 2001
Posts: 2545
posted Jun 03, 2003 22:23:00
0
hi: please refer to Inheritance and Exceptions , Object-oriented Programming in Java , and Items in java.jdk .
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
posted Jun 03, 2003 23:25:00
0
Don, it might be more useful if you distilled these articles into an answer. I'm a big fan of reading articles, but sometimes people just want their question answered.
John Lee
Ranch Hand
Joined: Aug 05, 2001
Posts: 2545
posted Jun 03, 2003 23:29:00
0
hi: i will.
I agree. Here's the link: jrebel
subject: casting problem