posted 18 years ago
Actually, the answers have to be C and D.
A and B are both wrong for the same reason: InnerClass doesn't exist statically, so there's no way to instantiate it independently of OuterClass. If you stick lines A and B inside a non-static method of OuterClass, then they would work.
E is wrong because it uses this, which is not available in a static context.
C and D both create instances of OuterClass before trying to create an InnerClass.
[ August 24, 2005: Message edited by: Ryan Kade ]