Originally posted by Chandra Bhatt:
But what about this error:
Originally Posted by Ulf Dittmer:
That's a pre-Java 5 thing. Java 5 introduced something called co-variant return types, which make this problem go away.
But, as Burkhard said, even a pre-Java 5 compiler should not omit that error message, because in an instanceof-statement the problem does not occur.
Ankit Garg wrote:Harry you already asked this question here. Then why are you posting to a thread that's more that 2 years old??