What will happen when you attempt to compile and run this code?
1) Compilation and output of count from 0 to 99 2) Compilation and no output 3) Compile time error: class Runt is an abstract class. It can't be instantiated. 4) Compile time error, method start cannot be called directly
Well, I guess this should've been none of the above because technically speaking Runt is all but abstract. Here's the compiler error:
You're right, Vad - There's no implementation of run() in Runt, so it must be declared abstract (which it isn't). I can see where the author may say that (3) is correct, except for the missing abstract declaration. Correct answer: none of the above. Good catch! [ October 06, 2003: Message edited by: Jeff Bosch ]
Give a man a fish, he'll eat for one day. <br />Teach a man to fish, he'll drink all your beer.<br /> <br />Cheers,<br /> <br />Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)