SlideShare a Scribd company logo
Programming Language (JAVA)
Unit 6.11 – Applets
Presentation 1
Revision
1. Explain exception handling in Java.
2. List the types of exceptions in Java
language.
3. What are try, catch and throw blocks
used for?
Objectives
At the end of this presentation, you will be able to :
• Explain applet programming
• List the differences between applications and
applets
• Describe the different stages in the life cycle of
an applet
Java Programs
Java supports two kinds of programs.
• Java Applications are the normal standalone
programs.
• Java Applets are the programs that are to be
embedded in a Web page.
Applet Programming
• Applets are the Java programs that are
executed by the Web browser.
• Appletviewer is a Java utility to execute
applets.
• Applet is a special class file written to display
graphics in a Web browser.
Applets
• Applets are embedded in Web pages using
the HTML tag <APPLET>.
• When a Web page containing applet program
is run, it is downloaded to the memory
automatically and executed by the Web
browser.
• Applet gets displayed in the specific space
allocated in the Web page called Applet
Window.
Applets
Applets can contain embedded objects like :
• Animated graphics
• Video games
• Advanced text displays and images
• Audio
Applet Types
• Local Applets

Applets that are stored in the local machine
• Remote Applets

Applets that are stored in a remote computer.

These can be downloaded and embedded into Web
pages from the Internet.
Local Applets
Remote Applets
Applets Vs. Applications
Applets Applications
Applets are embedded in
Web pages and cannot be
run independently.
Applications can be
run independently.
Applet programs call certain
methods such as init(),
start(), stop(), and destroy()
of Applet class to start and
execute the applet code.
Programs use the
main() method for
initiating the
execution of the
code.
Applets Vs. Applications (Contd..)
Applets Applications
Applets cannot read from or
write to the files in the local
computer.
Applications can
read from or write
to local computer.
Applets enable the user to
interact graphically.
Applications do not
enable the user to
interact graphically.
Life Cycle of Applets
The four methods executed are :
1. init()
2. start()
3. stop()
4. destroy()
Life Cycle of Applets
init()
Initialisation State
• This method is executed when it is first
loaded into the memory.
• The applet is now said to exist in the
initialisation state.
init()
Syntax
public void init( )
{
<action statements>;
}
start()
Running State
• The start() method of the Applet Class is
executed whenever an applet is started or
restarted.
• The applet is now said to exist in the running
state.
start()
Syntax
public void start()
{
<action statements>;
}
stop()
Idle State
• The stop() method is executed when an applet is
closed.
• The applet is stopped automatically when the user
switches to another program or Web page.
• This can also be done by invoking explicitly the
stop() method of Applet class.
• When this is invoked the applet enters the idle
state.
stop()
Syntax
public void stop( )
{
<action statements>;
}
destroy()
Dead State
• The destroy() method is executed when a
Web page is closed.
• The applet is now said to be in the dead
state.
destroy()
Syntax
public void destroy( )
{
<action statements>;
}
paint()
• The paint() method of the Applet class is
executed automatically whenever the applet
is displayed in the Web page.
• This method is used to draw graphics in the
drawing area of the applet.
repaint()
• The repaint() method is used whenever you
want to redraw the applet’s drawing area.
• The repaint() method calls the update()
method.
• The update() method clears the applet area
and calls the paint() method.
paint()
Syntax
public void paint(Graphics g)
{
<display statements>;
}
Summary
In this presentation, you learnt the following
• Applets are Java programs mainly used in
Internet computing.
• The applet’s output is displayed within a subset
of the display area of the browser.
• Java applet inherits a set of default properties
from the Applet class.
• An applet enters the Initialisation state when it is
first loaded.
Summary
In this presentation, you learnt the following
• Applet enters the running state when the start()
method of Applet class is invoked.
• An applet becomes idle when it is stopped from
running.
• An applet is said to be dead when it is removed
from memory.
Assignment
1. Define an applet. List the uses of applets.
2. Sketch and explain the life cycle of an
applet.

More Related Content

Similar to Java programming Java programming Java programming (20)

Advanced Programming, Java Programming, Applets.ppt
Advanced Programming, Java Programming, Applets.pptAdvanced Programming, Java Programming, Applets.ppt
Advanced Programming, Java Programming, Applets.ppt
miki304759
 
Applets
AppletsApplets
Applets
Prabhakaran V M
 
Basic of Applet
Basic of AppletBasic of Applet
Basic of Applet
suraj pandey
 
APPLET.pptx
APPLET.pptxAPPLET.pptx
APPLET.pptx
SHANMUGARAJA K
 
Applet Life Cycle in Java with brief introduction
Applet Life Cycle in Java with brief introductionApplet Life Cycle in Java with brief introduction
Applet Life Cycle in Java with brief introduction
devicse
 
Applet and graphics programming
Applet and graphics programmingApplet and graphics programming
Applet and graphics programming
mcanotes
 
Applets in Java. Learn java program with applets
Applets in Java. Learn java program with appletsApplets in Java. Learn java program with applets
Applets in Java. Learn java program with applets
halaplay385
 
Lecture1 oopj
Lecture1 oopjLecture1 oopj
Lecture1 oopj
Dhairya Joshi
 
Java applet
Java appletJava applet
Java applet
Rohan Gajre
 
Java Apple dndkorksnsbsjdkkdjejdjrdndjdj
Java Apple dndkorksnsbsjdkkdjejdjrdndjdjJava Apple dndkorksnsbsjdkkdjejdjrdndjdj
Java Apple dndkorksnsbsjdkkdjejdjrdndjdj
midhunmsd143
 
Appletjava
AppletjavaAppletjava
Appletjava
DEEPIKA T
 
Slide8appletv2 091028110313-phpapp01
Slide8appletv2 091028110313-phpapp01Slide8appletv2 091028110313-phpapp01
Slide8appletv2 091028110313-phpapp01
Abhishek Khune
 
Java applets
Java appletsJava applets
Java applets
Khan Mac-arther
 
Java applets
Java appletsJava applets
Java applets
Pihu Goel
 
Applet
AppletApplet
Applet
sweetysweety8
 
Oops
OopsOops
Oops
RichaDasila
 
Java
JavaJava
Java
janani thirupathi
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
sanchi Sharma
 
Java programming basics notes for beginners(java programming tutorials)
Java programming basics notes for beginners(java programming tutorials)Java programming basics notes for beginners(java programming tutorials)
Java programming basics notes for beginners(java programming tutorials)
Daroko blog(www.professionalbloggertricks.com)
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
Nexus
 
Advanced Programming, Java Programming, Applets.ppt
Advanced Programming, Java Programming, Applets.pptAdvanced Programming, Java Programming, Applets.ppt
Advanced Programming, Java Programming, Applets.ppt
miki304759
 
Applet Life Cycle in Java with brief introduction
Applet Life Cycle in Java with brief introductionApplet Life Cycle in Java with brief introduction
Applet Life Cycle in Java with brief introduction
devicse
 
Applet and graphics programming
Applet and graphics programmingApplet and graphics programming
Applet and graphics programming
mcanotes
 
Applets in Java. Learn java program with applets
Applets in Java. Learn java program with appletsApplets in Java. Learn java program with applets
Applets in Java. Learn java program with applets
halaplay385
 
Java Apple dndkorksnsbsjdkkdjejdjrdndjdj
Java Apple dndkorksnsbsjdkkdjejdjrdndjdjJava Apple dndkorksnsbsjdkkdjejdjrdndjdj
Java Apple dndkorksnsbsjdkkdjejdjrdndjdj
midhunmsd143
 
Slide8appletv2 091028110313-phpapp01
Slide8appletv2 091028110313-phpapp01Slide8appletv2 091028110313-phpapp01
Slide8appletv2 091028110313-phpapp01
Abhishek Khune
 
Java applets
Java appletsJava applets
Java applets
Pihu Goel
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
Nexus
 

More from Fadlie Ahdon (6)

Degrees_Mot_wk3_updatwqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqed.ppt
Degrees_Mot_wk3_updatwqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqed.pptDegrees_Mot_wk3_updatwqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqed.ppt
Degrees_Mot_wk3_updatwqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqed.ppt
Fadlie Ahdon
 
Puisi-dan-Madah-Cinta-Melayu-Yearnings.pptx
Puisi-dan-Madah-Cinta-Melayu-Yearnings.pptxPuisi-dan-Madah-Cinta-Melayu-Yearnings.pptx
Puisi-dan-Madah-Cinta-Melayu-Yearnings.pptx
Fadlie Ahdon
 
Google Forms - Introduction to Googe form learning
Google Forms - Introduction to Googe form learningGoogle Forms - Introduction to Googe form learning
Google Forms - Introduction to Googe form learning
Fadlie Ahdon
 
Google Site.pdf
Google Site.pdfGoogle Site.pdf
Google Site.pdf
Fadlie Ahdon
 
CPPDS Slide.pdf
CPPDS Slide.pdfCPPDS Slide.pdf
CPPDS Slide.pdf
Fadlie Ahdon
 
Pembentangan ITARS2021
Pembentangan ITARS2021Pembentangan ITARS2021
Pembentangan ITARS2021
Fadlie Ahdon
 
Degrees_Mot_wk3_updatwqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqed.ppt
Degrees_Mot_wk3_updatwqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqed.pptDegrees_Mot_wk3_updatwqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqed.ppt
Degrees_Mot_wk3_updatwqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqed.ppt
Fadlie Ahdon
 
Puisi-dan-Madah-Cinta-Melayu-Yearnings.pptx
Puisi-dan-Madah-Cinta-Melayu-Yearnings.pptxPuisi-dan-Madah-Cinta-Melayu-Yearnings.pptx
Puisi-dan-Madah-Cinta-Melayu-Yearnings.pptx
Fadlie Ahdon
 
Google Forms - Introduction to Googe form learning
Google Forms - Introduction to Googe form learningGoogle Forms - Introduction to Googe form learning
Google Forms - Introduction to Googe form learning
Fadlie Ahdon
 
Pembentangan ITARS2021
Pembentangan ITARS2021Pembentangan ITARS2021
Pembentangan ITARS2021
Fadlie Ahdon
 
Ad

Recently uploaded (20)

MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKANMATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18
Celine George
 
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
parmarjuli1412
 
What are the benefits that dance brings?
What are the benefits that dance brings?What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxDiptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Arshad Shaikh
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptxjune 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptxAnalysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Shrutidhara2
 
Gibson "Secrets to Changing Behaviour in Scholarly Communication: A 2025 NISO...
Gibson "Secrets to Changing Behaviour in Scholarly Communication: A 2025 NISO...Gibson "Secrets to Changing Behaviour in Scholarly Communication: A 2025 NISO...
Gibson "Secrets to Changing Behaviour in Scholarly Communication: A 2025 NISO...
National Information Standards Organization (NISO)
 
Nice Dream.pdf /
Nice Dream.pdf                              /Nice Dream.pdf                              /
Nice Dream.pdf /
ErinUsher3
 
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptxSEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
PoojaSen20
 
What is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptxWhat is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptx
Ramakrishna Reddy Bijjam
 
How to Create a Rainbow Man Effect in Odoo 18
How to Create a Rainbow Man Effect in Odoo 18How to Create a Rainbow Man Effect in Odoo 18
How to Create a Rainbow Man Effect in Odoo 18
Celine George
 
Parenting Teens: Supporting Trust, resilience and independence
Parenting Teens: Supporting Trust, resilience and independenceParenting Teens: Supporting Trust, resilience and independence
Parenting Teens: Supporting Trust, resilience and independence
Pooky Knightsmith
 
How to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 EmployeeHow to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 Employee
Celine George
 
TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025
TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025
TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025
Quiz Club of PSG College of Arts & Science
 
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
EduSkills OECD
 
How to Create an Event in Odoo 18 - Odoo 18 Slides
How to Create an Event in Odoo 18 - Odoo 18 SlidesHow to Create an Event in Odoo 18 - Odoo 18 Slides
How to Create an Event in Odoo 18 - Odoo 18 Slides
Celine George
 
Rose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdfRose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdf
kushallamichhame
 
Final Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptxFinal Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptx
bobby205207
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdfFEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKANMATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18
Celine George
 
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
parmarjuli1412
 
What are the benefits that dance brings?
What are the benefits that dance brings?What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxDiptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Arshad Shaikh
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptxjune 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptxAnalysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Shrutidhara2
 
Nice Dream.pdf /
Nice Dream.pdf                              /Nice Dream.pdf                              /
Nice Dream.pdf /
ErinUsher3
 
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptxSEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
PoojaSen20
 
What is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptxWhat is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptx
Ramakrishna Reddy Bijjam
 
How to Create a Rainbow Man Effect in Odoo 18
How to Create a Rainbow Man Effect in Odoo 18How to Create a Rainbow Man Effect in Odoo 18
How to Create a Rainbow Man Effect in Odoo 18
Celine George
 
Parenting Teens: Supporting Trust, resilience and independence
Parenting Teens: Supporting Trust, resilience and independenceParenting Teens: Supporting Trust, resilience and independence
Parenting Teens: Supporting Trust, resilience and independence
Pooky Knightsmith
 
How to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 EmployeeHow to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 Employee
Celine George
 
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
EduSkills OECD
 
How to Create an Event in Odoo 18 - Odoo 18 Slides
How to Create an Event in Odoo 18 - Odoo 18 SlidesHow to Create an Event in Odoo 18 - Odoo 18 Slides
How to Create an Event in Odoo 18 - Odoo 18 Slides
Celine George
 
Rose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdfRose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdf
kushallamichhame
 
Final Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptxFinal Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptx
bobby205207
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdfFEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
Ad

Java programming Java programming Java programming

  • 1. Programming Language (JAVA) Unit 6.11 – Applets Presentation 1
  • 2. Revision 1. Explain exception handling in Java. 2. List the types of exceptions in Java language. 3. What are try, catch and throw blocks used for?
  • 3. Objectives At the end of this presentation, you will be able to : • Explain applet programming • List the differences between applications and applets • Describe the different stages in the life cycle of an applet
  • 4. Java Programs Java supports two kinds of programs. • Java Applications are the normal standalone programs. • Java Applets are the programs that are to be embedded in a Web page.
  • 5. Applet Programming • Applets are the Java programs that are executed by the Web browser. • Appletviewer is a Java utility to execute applets. • Applet is a special class file written to display graphics in a Web browser.
  • 6. Applets • Applets are embedded in Web pages using the HTML tag <APPLET>. • When a Web page containing applet program is run, it is downloaded to the memory automatically and executed by the Web browser. • Applet gets displayed in the specific space allocated in the Web page called Applet Window.
  • 7. Applets Applets can contain embedded objects like : • Animated graphics • Video games • Advanced text displays and images • Audio
  • 8. Applet Types • Local Applets  Applets that are stored in the local machine • Remote Applets  Applets that are stored in a remote computer.  These can be downloaded and embedded into Web pages from the Internet.
  • 11. Applets Vs. Applications Applets Applications Applets are embedded in Web pages and cannot be run independently. Applications can be run independently. Applet programs call certain methods such as init(), start(), stop(), and destroy() of Applet class to start and execute the applet code. Programs use the main() method for initiating the execution of the code.
  • 12. Applets Vs. Applications (Contd..) Applets Applications Applets cannot read from or write to the files in the local computer. Applications can read from or write to local computer. Applets enable the user to interact graphically. Applications do not enable the user to interact graphically.
  • 13. Life Cycle of Applets The four methods executed are : 1. init() 2. start() 3. stop() 4. destroy()
  • 14. Life Cycle of Applets
  • 15. init() Initialisation State • This method is executed when it is first loaded into the memory. • The applet is now said to exist in the initialisation state.
  • 16. init() Syntax public void init( ) { <action statements>; }
  • 17. start() Running State • The start() method of the Applet Class is executed whenever an applet is started or restarted. • The applet is now said to exist in the running state.
  • 19. stop() Idle State • The stop() method is executed when an applet is closed. • The applet is stopped automatically when the user switches to another program or Web page. • This can also be done by invoking explicitly the stop() method of Applet class. • When this is invoked the applet enters the idle state.
  • 20. stop() Syntax public void stop( ) { <action statements>; }
  • 21. destroy() Dead State • The destroy() method is executed when a Web page is closed. • The applet is now said to be in the dead state.
  • 22. destroy() Syntax public void destroy( ) { <action statements>; }
  • 23. paint() • The paint() method of the Applet class is executed automatically whenever the applet is displayed in the Web page. • This method is used to draw graphics in the drawing area of the applet.
  • 24. repaint() • The repaint() method is used whenever you want to redraw the applet’s drawing area. • The repaint() method calls the update() method. • The update() method clears the applet area and calls the paint() method.
  • 25. paint() Syntax public void paint(Graphics g) { <display statements>; }
  • 26. Summary In this presentation, you learnt the following • Applets are Java programs mainly used in Internet computing. • The applet’s output is displayed within a subset of the display area of the browser. • Java applet inherits a set of default properties from the Applet class. • An applet enters the Initialisation state when it is first loaded.
  • 27. Summary In this presentation, you learnt the following • Applet enters the running state when the start() method of Applet class is invoked. • An applet becomes idle when it is stopped from running. • An applet is said to be dead when it is removed from memory.
  • 28. Assignment 1. Define an applet. List the uses of applets. 2. Sketch and explain the life cycle of an applet.