Sail E0 Webinar
Question


What is the Message is displayed in the applet made by this program?


import java.awt.*;
import java.applet.*;
public class myapplet extends Applet {
public void paint(Graphics g) {
g.drawString("A Simple Applet", 20, 20);
}
}
Options:
A .  A Simple Applet
B .  A Simple Applet 20 20
C .  Compilation Error
D .  Runtime Error
Answer: Option A

None.
Output:
A Simple Applet
(Output comes in a new java application)



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers