GkSeries.com

Q.

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.

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Please share this page

Click Here to Read more questions

Teacher Eligibility Test