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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Casting" Watch "Casting" New topic


Abhi vijay
Ranch Hand

Joined: Sep 16, 2008
Posts: 509
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:
subject: Casting
It's not a secret anymore!