A Java entry point sequence example:


import java.applet.*;
import java.awt.*;

public class Sequence extends Applet {

 public Sequence() {

  System.out.println("Sequence Constructor called");
 }
 
 public static void main(String args[]) {
 
  System.out.println("Sequence main entry point called");

  Sequence S = new Sequence();
 
  System.out.println("Back in main function now");

  S.init();

 }
 

 public void init() {

  System.out.println("Sequence init method called");

 }

 public void start() {

  System.out.println("Sequence start method called");
 }

 public void stop() {

  System.out.println("Sequence stop method called");
 }

 public void paint(Graphics g) {

  System.out.println("Sequence paint method called");

 }

 public void destroy() {

  System.out.println("Sequence destroy method called");

 }
}


This tag runs the above program as an Applet:

<applet code=Sequence width=300 height=200> </applet>