aspose file tools*
The moose likes Beginning Java and the fly likes invalid cast exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "invalid cast exception " Watch "invalid cast exception " New topic
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: 60

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: 19670
    
  18



SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

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: 60

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: 38363
    
  23
. . . and welcome to the Ranch
Mike Simmons
Ranch Hand

Joined: Mar 05, 2008
Posts: 3007
    
    9
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


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: invalid cast exception