1.

Which of these methods can be used to output a string in an applet?(a) display()(b) print()(c) drawString()(d) transient()This question was addressed to me during an interview.I would like to ask this question from Applets Fundamentals topic in section I/O & Applets of Java

Answer»

The correct choice is (c) drawString()

Explanation: drawString() method is defined in GRAPHICS CLASS, it is used to OUTPUT a string in an APPLET.



Discussion

No Comment Found

Related InterviewSolutions