posted 23 years ago
It's a badly phrased question. By "extends" do they mean "directly extends" only, or can they also mean "indirectly extends"? We can't really know. (Well, I guess we can after reading the answer, but it's still a bad question.) All anonymous classes extend Object at least indirectly, but they only dirctly extend Object if (a) they explicitly name Object as the class they extend, or (b) they name an interface to implement instead. In the latter case Object is the class extended, by default.
"I'm not back." - Bill Harding, Twister