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.
Get certified in first attempt download scmad - SCMAD simulation. Click here to get free CX310-110 SCMAD Mobile Application Developer exam practice questions.