The following questions test your knowledge of applets.
What type of argument is used with the paint() method?
Which method is handled right before an applet finishes running?
Why can't all variables needed in an applet be created inside the init() method?
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.
b.
a. Variables that are used in more than one method of a class should be created right after the class statement but before any methods begin.