g.drawString("Welcome to programming!",25,25);

"apply the drawString method to Graphics object g with arguments "Welcome to programming!" , 25 , and 25 ."

"send the Graphics object g the drawString message with arguments "Welcome to programming!" , 25 , and 25 ."

Applet:

paint(Graphics)

Graphics:

drawstring(String)