Showing posts with label destroy(). Show all posts
Showing posts with label destroy(). Show all posts

Monday, 17 February 2014

INITIALIZATION AND TERMINATION OF APPLET IN JAVA

APPLET INITIALIZATION AND TERMINATION

When an applet begins, sequence of methods are:
1. init( )
2. start( )
3. paint( )
When an applet is terminated, the sequence is:
1. stop( )
2. destroy( )

init( ) :

  • The init( ) method is the first method to be called.
  •  Initializing the variables.
  •  This method is called only once during the run time of the applet.