File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Certification » Associate Certification (OCAJP 7/8)
Bookmark "Good Resource for casts" Watch "Good Resource for casts" New topic
Author

Good Resource for casts

Johnny Fanta
Greenhorn

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
Author
Ranch Hand

Joined: Sep 27, 2002
Posts: 251
    
    9
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


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

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

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


Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Good Resource for casts