adplus-dvertising
frame-decoration

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);    
        }
    }

a.

A Simple Applet

b.

A Simple Applet 20 20

c.

Compilation Error

d.

Runtime Error

Posted under Java Programming

Answer: (a).A Simple Applet

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 Message is displayed in the applet made by this program?