Hi Dan,
Im still confused
According to Java API, AbstractMap and AbstractCollection are peer classes (they both inherit from Object). AbstractList and AbstractSet are subclasses of AbstractCollection. Therefore, there should be no way that an AbstractMap reference type can be an instanceof Collection.
Based on my understanding of what you've said, if there's no way that a reference can be an instance of an array, interface or class, a Compiler error occurs. But why does it not happen in the above scenario ?
[ February 03, 2003: Message edited by: Maria Garcia ]
[ February 03, 2003: Message edited by: Maria Garcia ]