Online GK Series

This site is dedicated to the aspirants of competitive exams SSC, UPSC, Railways, Postal Assistants, Bank, GATE and NET

Connect with Universities & Study Abroad Experts Instantly Connect Now

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.

Your Valuable Comments Please...

Useful Computer Science EBooks