【单选题】
A The sleep() method is not invoked correctly; it should be invoked as Thread.sleep(1000).
B You cannot put the keyword synchronized in the run() method.
C The init() method is defined in the Applet class, and it is overridden incorrectly because it cannot claim exceptions in the subclass.
D The sleep() method should be put in the try-catch block. This is the only reason for the compilation failure.
查看更多