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.
Correct me if I'm wrong here, but your Dog is an Array of Dog objects. But non-the-less it's an Array. Calling Dog instance of Dog is basically saying Array instanceof Dog, which obviously is false. Hope that helps.
Joined: Sep 03, 2007
i think you are correct, it is ashame that even an array of Dog as type of dogs cant make it in the instanceof test.