This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
> > I'm not sure about the answer to question#24 in the rules round up game. It > is as follows: > > Q: Class Y is a subclass of class X. Will this compile? Y myY=new X()? > > Ans: No > > Is it not true that though the code is incorrect, referencing an object of > class X using a reference of subclass Y, it will fail only at runtime and not > at compile time? >