The paint() method is a method of the GameCanvas class. It is called in an application to draw the contents of Canvas on the screen. The general syntax of this method is as follows:
Here, g is the instance of the Graphics class.
Click here to download scmad test study guide and practice question. Become SUN SCMAD Mobile Application Developer certified.