-
What is the length of the application box 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...", 50, 50);
}
}
-
- 20
- 30
- 40
- 50
- 60
Correct Option: D
the code in paint() method – g.drawString(“A Simple Applet created...”,50,50); draws a applet box of length 50 and width 50.