Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Good Resource for casts

 
Johnny Fanta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The area where I'm having the greatest problem is in casts or mainly Multiple casts I've tried looking around the web and books and just can't seem to find a resource that I can learn from that would be up to exam standard. If you know of any please share.

Example question:


a = (B)(I)b;
b = (B)(I) a;
a = (I) b;
I i = (C) a;
 
Mala Gupta
Author
Ranch Hand
Pie
Posts: 355
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Johnny,

The same question has been answered in the following post:
http://www.coderanch.com/t/593758/ocajp/certification/Multiple-casts

With respect,
Mala
 
Johnny Fanta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I saw that, very useful, but is there an online source I could study.
 
arulk pillai
Author
Ranch Hand
Posts: 3388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you type the code snippet in an editor and try different combinations.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic