aspose file tools
The moose likes Beginning Java and the fly likes Rules on Casting Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Rules on Casting Objects" Watch "Rules on Casting Objects" New topic
Author

Rules on Casting Objects

Paulo Aquino
Ranch Hand

Joined: Apr 29, 2002
Posts: 200
Hey guys, can you help me in here? i've read somewhere ( i think a java cert book ) that there are rules to follow when you cast objects, interfaces and arrays...the problem is i dont have that java cert book...anyway can anyone point mo to the right directions? thanks in advance!


Be Afraid...Be very Afraid...
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Paulo
Check out the JLS section 5.1.4 and 5.1.5 for the rules on reference conversions.
For a more easily read example check out the online book Thinking in Java
hope that helps


Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rules on Casting Objects
 
Similar Threads
Where to start ?
Exam Voucher for sale
Cast expression
Which book should I buy
compiling package with import statement