| Author |
invalid cast exception
|
abhay jain
Ranch Hand
Joined: Jun 03, 2011
Posts: 130
|
|
|
need an easy, small code just to understand invalid cast exception in java
|
 |
Joseph Mokenela
Ranch Hand
Joined: Jan 18, 2011
Posts: 58
|
|
|
Buy invalid cast exception, do you mean class cast exception?
|
 |
abhay jain
Ranch Hand
Joined: Jun 03, 2011
Posts: 130
|
|
|
yes
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Mohamed Sanaulla
Bartender
Joined: Sep 08, 2007
Posts: 2929
|
|
You could search for ClassCastException and get lot of examples from this forum - SearchFirst (Also the link to the Documentation of the exception has an example)
Update:
I was really late to post this reply, Rob has provided a simple example.
|
Mohamed Sanaulla | My Blog
|
 |
Joseph Mokenela
Ranch Hand
Joined: Jan 18, 2011
Posts: 58
|
|
|
You can check the java documentation on ClassCastException JavaDocs
|
 |
abhay jain
Ranch Hand
Joined: Jun 03, 2011
Posts: 130
|
|
@Rob Spoor
thanks a lot for such a nice example
@Mohamed Sanaulla
next time i will surely check these link first . thanks
@Joseph Mokenela
thanks
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32712
|
|
. . . and welcome to the Ranch
|
 |
Mike Simmons
Ranch Hand
Joined: Mar 05, 2008
Posts: 2782
|
|
Joseph Mokenela wrote:Buy invalid cast exception, do you mean class cast exception?
By "buy", do you mean "by"?
Sorry, I couldn't resist. Carry on...
|
 |
abhay jain
Ranch Hand
Joined: Jun 03, 2011
Posts: 130
|
|
@Campbell Ritchie
Looks like a great place to be, Thankssss!
@Mike Simmons
my opinion :
in a QWERTY key board 'u' and 'y' looks too closer for such a typing mistake
|
 |
 |
|
|
subject: invalid cast exception
|
|
|