Java Reference
In-Depth Information
2 . Explain why an applet must use multithreading if it needs to run continually.
An applet must use multithreading if it needs to run continually because applets are
event-driven programs which must not enter a “mode” of operation. For example, if
start( ) never returns, then paint( ) will never be called.
3 . Enhance Try This 15-1 so that it displays the string passed to it as a parameter. Add a
second parameter that specifies the time delay (in milliseconds) between each rota-
tion.
Search WWH ::




Custom Search