Multiple choice

Which one of the following is a valid declaration of an applet?

  1. Public class MyApplet extends java.applet.Applet {

  2. public Applet MyApplet {

  3. public class MyApplet extends applet implements Runnable {

  4. public class MyApplet extends java.applet.Applet {

Reveal answer Fill a bubble to check yourself
D Correct answer