thanks Rajah....that did explain the things....i don't know why...but the 3 rd chapter was a disaster for me.....
and gowher..... rajah provided the explanation to ur doubt too...do u still need any more explanation?
1. a Foo instance will pass the instanceOf
test of Foo, Bar, Face, Object....
2. but Foo[] is an array type...it refers to an array and not to any instance of Foo, Bar, Face, Obeject
3. Hence Foo[] fails the instanceOf test
While in second case Foo[1] represents a Foo object
(just like: int[] array = new int[2]; where array[0] refers to an int value stored in the arry)
Hence it passes the instanceOf test....