Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

C Books Guide and List
C++ Books Guide and List
Best Java Books

+1 vote
4.4k views
asked by (4.8k points) 10 25 32

1 Answer

0 votes

 An applet is a java program which register on the server and will be executed in the client.

*Life cycle methods:

1. int(): This is the 1st method to be executed this method contains the code for initialization. This method will be executed only one time.

2. start(): This method will be executed after init() method. This method contains business logic like connecting to files data bases processing the data, generating report etc. this method will be executed multiple times as long as the applet has the control.

3. stop(): This method will be executed when the applet looses the control. This method contains a logic for the performing “cleanup activities”. This method will be executed multiple times when ever the applet looses the control.

4. destroy(): This is the last method to be executed before terminating the applet. This method is used to destroy the applet. This method executed only one time.

Note: when even destroy() method is called before invoking it will call stop() method.

answered by (15k points) 16 23 34

Related questions

0 votes
1 answer 88 views
88 views asked by smith (15.3k points) 18 45 77
0 votes
1 answer 29 views
29 views asked by felin (8.4k points) 10 15 20
0 votes
1 answer 60 views
60 views asked by taye (5k points) 7 9 12
0 votes
1 answer 36 views
36 views asked by smith (15.3k points) 18 45 77
0 votes
1 answer 146 views
...