File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Casting" Watch "Casting" New topic
Author

Casting

Abhi vijay
Ranch Hand

Joined: Sep 16, 2008
Posts: 509
Source:
K & B Book.




Here in Line1 (Redwood)new Tree(), so the reference type of t1 in go2 method becomes Rosewood, or it remains the same Tree? Please explain what is happening in line1,2. I am getting confused
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

web page This is a recent post on the same question.


My Blog SCJP 5 SCWCD 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Casting
 
Similar Threads
Overloading and casting
Down Casting to subtype
Please help me understanding this
Please explain DownCast Code from K&B
A doubt in the type casting