Examveda
Examveda

What is the Message is displayed in the applet made by the following Java program?
import java.awt.*;
import java.applet.*;
public class myapplet extends Applet
{
    public void paint(Graphics g)
    {
        g.drawString("A Simple Applet", 20, 20);    
    }
}

A. A Simple Applet

B. A Simple Applet 20 20

C. Compilation Error

D. Runtime Error

Answer: Option A


This Question Belongs to Java Program >> Input Output

Join The Discussion

Related Questions on Input Output