The moose likes Associate Certification (OCAJP 7/8) and the fly likes Good Resource for casts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Certification » Associate Certification (OCAJP 7/8)
Bookmark "Good Resource for casts" Watch "Good Resource for casts" New topic

Good Resource for casts

Johnny Fanta

Joined: Jul 20, 2012
Posts: 5
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
Ranch Hand

Joined: Sep 27, 2002
Posts: 276
Hi Johnny,

The same question has been answered in the following post:

With respect,

Author of Manning's OCA Java SE 7 Programmer I Certification Guide and OCP Java SE 7 Programmer II Certification Guide
Johnny Fanta

Joined: Jul 20, 2012
Posts: 5
Thanks I saw that, very useful, but is there an online source I could study.
arulk pillai
Ranch Hand

Joined: May 31, 2007
Posts: 3359
Why don't you type the code snippet in an editor and try different combinations.

[] | [Java job hunting know how] | [Java resumes]
I agree. Here's the link:
subject: Good Resource for casts
It's not a secret anymore!