Examveda
Examveda

What is the length of the application box 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. 20

B. 50

C. 100

D. System dependent

Answer: Option A


This Question Belongs to Java Program >> Input Output

Join The Discussion

Related Questions on Input Output