Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Question

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.

Advertisement
Article and Schedule Quiz Start Test!
DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Random GK Questions

Assam Direct Recruitment Test Series

Computer Science Topics