I made this class hierarchy in
Java. Then I wrote this code in main method
This code is not generating any Compile time error. While interface1 and class3 are not related by any means i.e. they don't have a common sub type. Similarly interface1 and interface2 and interface2 and class2 are not related by any means. Then it must produce a compile time error. But it is not... Why is this so???
Is this some sort of bug in Java???
[ August 03, 2008: Message edited by: AnkitJi Garg ]
[ August 03, 2008: Message edited by: AnkitJi Garg ]