import javax.swing.JApplet;public class MainApplet extends JApplet { public void init() { System.out.println("init"); } public void start() { System.out.println("started"); }} HTML file: