Applet
- What is the length of the application box made by this program?
import java.awt.*;
import java.applet.*;
public class Applet_Example extends Applet
{
Graphic graphic;
graphic.drawString("A Simple Applet",25, 25);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
To implement the method drawString we need first need to define abstract method of AWT that is paint() method. Without paint() method we cannot define and use drawString or any Graphic class methods.