• The Addition applet contains 2 methods: init and action.
  • The init method is used to initialize the values of objects and variables.
  • init is guaranteed to be the 1st method that applets invoke.
  • BUT, you say, we didn't use it on our Welcome applet.
  • The Applet class supplies us with empty methods for:
    • init
    • start
    • paint.
  • If we don't define them ourselves, we get the empty methods. They all always get invoked in the order given above.
  • The init method always appears as
    public void init() 
  • The word void means that init does not return a value to the object that invoked it.
  • Since nothing appears within the (), no arguments are ever given to the init method.