This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton 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? >