Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. 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);    
    }
    }
  2. A.
    A Simple Applet
    B.
    A Simple Applet 20 20
    C.
    Compilation Error
    D.
    Runtime Error

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    A Simple Applet


Be The First To Comment