This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes Casting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Casting" Watch "Casting" New topic
Author

Casting

D Singh
Greenhorn

Joined: May 23, 2003
Posts: 10
Hi,
I would like to get a good grasp on casting for example from an interface to a class or from an array element to an interface etc. Could someone please let me know of a good tutorial or clarify my doubts.
thanks
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
That would have to be How my Dog Learned Plymorphism


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Marlene Miller
Ranch Hand

Joined: Mar 05, 2003
Posts: 1391
I learned about casting from JLS 5.1, especially the sections on widening and narrowing reference conversions.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Casting