Which of the following will be used to print your name in an applet?

A drawText (myName)
B drawLine (myName, 10. 10)
C drawLetters (10, 10, myName)
D drawString (myName, 10, 10)
Answer & Explanation
Option: [D]

drawString is a Graphics class. It called within update() or paint() method to print a string to the applet window.

Your Valuable Comments Please...

Useful Computer Science EBooks