This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Explanation: Line 2 is fine since array f1 contains elements of type G which is a subclass of F. The cast to Gis needed, though, since the declared type of f1 is F and F is a superclass of G. May be line 2 must be written one line below? Can you explain me that line by line? Thank you. [ August 27, 2002: Message edited by: Dmitry Golynkin ]