September 2005
Beginner
576 pages
13h 6m
English
The following questions test your knowledge of applets.
| 1: | What type of argument is used with the paint() method?
|
| 2: | Which method is handled right before an applet finishes running?
|
| 3: | Why can't all variables needed in an applet be created inside the init() method?
|
| A1: | a. The Graphics object keeps track of the behavior and attributes needed to display things on-screen in the applet window. You might create a Graphics2 object inside the method, but it isn't sent as an argument. |
| A2: | b. |
| A3: | a. Variables that are used ... |
Read now
Unlock full access