adplus-dvertising
frame-decoration

Question

What is the length of the application box 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);    
        }
    }

a.

20

b.

50

c.

100

d.

System dependent

Posted under Java Programming

Answer: (a).20

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the length of the application box made by this program?