Given co-ordinates under which we have to print a welcome message using Java applet program.
In this example, we are using a function named g.drawString() which is a method of Graphics class, here g is an object of Graphics class. drawString() is taking three parameters string to display and x,y co-ordinates.
Applet program to print welcome message in Java
Output

need an explanation for this answer? contact us directly to get an explanation for this answer