Home » JAVA Programming » Applet » Question
  1. What is the Message is displayed in the applet made by this program?
    import java.awt.*;
    import java.applet.*;
    public class TextApplet extends Applet
    {
    public void paint(Graphics g)
    {
    g.drawString("A Simple Applet created...", 40, 40);
    }
    }
    1. A simple applet created...
    2. A simple applet created... 40 40
    3. Runtime Error
    4. Compilation Error
    5. None of these
Correct Option: A

A simple applet created...
(Output comes in a new java application)



Your comments will be displayed only after manual approval.