SlideShare a Scribd company logo
1 of 16
A Presentation On Object Oriented Programming
Topic : LIFE CYCLE OF
APPLET
Presented By:
Richa Dasila.
160030101045
AMRAPALI INSTITUE OF TECHNOLOGY AND SCIENCES
CONTENTS:
Introduction.
Life Cycle.
Application.
Introduction:
 Java programs used in internet computing to respond the user.
 Applet=Java Byte Code + HTML page.
 They can be transported over the internet and can run using
AppletViewer / Web browser supporting java.
 Embedding Applets into web pages can be done via Local Applets or
Remote Applets .
 The Applet class is itself a subclass , the inheritance
may be better represented as:
java.lang.Object java.awt.Component java.awt.Container
java.awt.Paneljava.applet.Applet
 The Applet class uses the services of two classes namely, Applet and Graphics .
 Applet package provides life and behaviour to the applet through methods such
as init(), start() etc.
 Unlike other applications which call the main() method to execute the code .
When an applet is loaded java automatically calls a series of Applet class
method for starting,running and stopping thereby following a lifecycle.
Life Cycle:
Running
State
Idle
State
Dead
State.
Born
State
END.
BORN
STATE
init() :
This method is
used for
initialization
 Following Things can be done:
i. Objects can be created using Applet.
ii. Initial Values can be set.
iii. Colors can be set.
iv. Load fonts .
 This can be done only once in an applet’s life cycle.
BORN STATE.
 To provide any behaviour we must override the init() function.
 Syntax:
public void init()
{
………………..
…………..(Action)
…………………
}
RUNNING
STATE
start()
THE RUNING
STATE
 Applet enter this stage when :
 System calls the start() method of Applet class , this method is automatically called after
the init () .
 Applet is resumed from the idle stage after some activity by the user in different page.
• This method unlike init() can be called more than once , we may override the start()
method to create a thread to control applet.
 The syntax:
public void start()
{…………
……….(Action)
…………
}
 Applet moves to paint method to perform output operations on screen .
 This happens immediately after entering the running stage.
 The display stage is not considered as a part of applet’s life cycle .
 The default version of the display state does absolutely nothing.
 Syntax:
public void paint(Graphics g)
{……………
………(Action)
}
DISPLAY
STAGE
paint()
THE DISPLAY STAGE
IDLE
STATE stop()
THE IDLE STAGE:
 An Applet becomes idle when we leave the page containing the currently running
applet.
 If we use a thread to run the applet , we must use stop() method to terminate the
thread.
 We must override the stop() method.
 Syntax:
public void stop()
{………..
…..(Action)
……..
}
DEAD
STATE
destroy()
THE DEAD
STAGE
 Dead State = Removed from memory.
 This occurs automatically when we exit the browser
state.
 Invoking the destroy() method cleans up the
resources created by the applet.
 It can be overridden only once like the init() stage.
 Syntax:
public void destroy()
{
……………..
……(Action)
………….
}
APPLICATION:
 When we need something dynamic in the webpage :
Smart Presentation of statistical data.
 When we require flash outputs : Creative
presentation.
 Creating Remote Applets and storing them in the
internet for others to download and use.
Oops

More Related Content

What's hot

What's hot (20)

Applet Architecture - Introducing Java Applets
Applet Architecture - Introducing Java AppletsApplet Architecture - Introducing Java Applets
Applet Architecture - Introducing Java Applets
 
Applet programming
Applet programming Applet programming
Applet programming
 
Applet programming in java
Applet programming in javaApplet programming in java
Applet programming in java
 
Applet and graphics programming
Applet and graphics programmingApplet and graphics programming
Applet and graphics programming
 
Java applet - java
Java applet - javaJava applet - java
Java applet - java
 
Applet progming
Applet progmingApplet progming
Applet progming
 
Java applets
Java appletsJava applets
Java applets
 
java Unit4 chapter1 applets
java Unit4 chapter1 appletsjava Unit4 chapter1 applets
java Unit4 chapter1 applets
 
Applets in java
Applets in javaApplets in java
Applets in java
 
Java applets
Java appletsJava applets
Java applets
 
Java Applets
Java AppletsJava Applets
Java Applets
 
Applet (1)
Applet (1)Applet (1)
Applet (1)
 
Appletjava
AppletjavaAppletjava
Appletjava
 
java applets
java appletsjava applets
java applets
 
Applet
AppletApplet
Applet
 
Java Applet and Graphics
Java Applet and GraphicsJava Applet and Graphics
Java Applet and Graphics
 
Till applet skeleton
Till applet skeletonTill applet skeleton
Till applet skeleton
 
Java applets
Java appletsJava applets
Java applets
 
Applets
AppletsApplets
Applets
 
Java: Java Applets
Java: Java AppletsJava: Java Applets
Java: Java Applets
 

Similar to Oops

Similar to Oops (20)

Applet in java new
Applet in java newApplet in java new
Applet in java new
 
Basic of Applet
Basic of AppletBasic of Applet
Basic of Applet
 
Java applet
Java appletJava applet
Java applet
 
Unit 7 Java
Unit 7 JavaUnit 7 Java
Unit 7 Java
 
APPLET.pptx
APPLET.pptxAPPLET.pptx
APPLET.pptx
 
Applets in Java
Applets in JavaApplets in Java
Applets in Java
 
oops with java modules iii & iv.pptx
oops with java modules iii & iv.pptxoops with java modules iii & iv.pptx
oops with java modules iii & iv.pptx
 
Slide8appletv2 091028110313-phpapp01
Slide8appletv2 091028110313-phpapp01Slide8appletv2 091028110313-phpapp01
Slide8appletv2 091028110313-phpapp01
 
ITFT- Applet in java
ITFT- Applet in javaITFT- Applet in java
ITFT- Applet in java
 
Advanced Programming, Java Programming, Applets.ppt
Advanced Programming, Java Programming, Applets.pptAdvanced Programming, Java Programming, Applets.ppt
Advanced Programming, Java Programming, Applets.ppt
 
171-33B - Java Programming-Building Applets.ppt
171-33B - Java Programming-Building Applets.ppt171-33B - Java Programming-Building Applets.ppt
171-33B - Java Programming-Building Applets.ppt
 
Lecture1 oopj
Lecture1 oopjLecture1 oopj
Lecture1 oopj
 
Java applet
Java appletJava applet
Java applet
 
applet.pptx
applet.pptxapplet.pptx
applet.pptx
 
Java applet basics
Java applet basicsJava applet basics
Java applet basics
 
Applets
AppletsApplets
Applets
 
Lecture 22
Lecture 22Lecture 22
Lecture 22
 
Java chapter 7
Java chapter 7Java chapter 7
Java chapter 7
 
Class notes(week 10) on applet programming
Class notes(week 10) on applet programmingClass notes(week 10) on applet programming
Class notes(week 10) on applet programming
 
Applet1 (1).pptx
Applet1 (1).pptxApplet1 (1).pptx
Applet1 (1).pptx
 

Recently uploaded

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 

Recently uploaded (20)

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 

Oops

  • 1. A Presentation On Object Oriented Programming Topic : LIFE CYCLE OF APPLET Presented By: Richa Dasila. 160030101045 AMRAPALI INSTITUE OF TECHNOLOGY AND SCIENCES
  • 3. Introduction:  Java programs used in internet computing to respond the user.  Applet=Java Byte Code + HTML page.  They can be transported over the internet and can run using AppletViewer / Web browser supporting java.  Embedding Applets into web pages can be done via Local Applets or Remote Applets .
  • 4.  The Applet class is itself a subclass , the inheritance may be better represented as: java.lang.Object java.awt.Component java.awt.Container java.awt.Paneljava.applet.Applet
  • 5.  The Applet class uses the services of two classes namely, Applet and Graphics .  Applet package provides life and behaviour to the applet through methods such as init(), start() etc.  Unlike other applications which call the main() method to execute the code . When an applet is loaded java automatically calls a series of Applet class method for starting,running and stopping thereby following a lifecycle.
  • 7. BORN STATE init() : This method is used for initialization  Following Things can be done: i. Objects can be created using Applet. ii. Initial Values can be set. iii. Colors can be set. iv. Load fonts .  This can be done only once in an applet’s life cycle. BORN STATE.
  • 8.  To provide any behaviour we must override the init() function.  Syntax: public void init() { ……………….. …………..(Action) ………………… }
  • 9. RUNNING STATE start() THE RUNING STATE  Applet enter this stage when :  System calls the start() method of Applet class , this method is automatically called after the init () .  Applet is resumed from the idle stage after some activity by the user in different page. • This method unlike init() can be called more than once , we may override the start() method to create a thread to control applet.
  • 10.  The syntax: public void start() {………… ……….(Action) ………… }
  • 11.  Applet moves to paint method to perform output operations on screen .  This happens immediately after entering the running stage.  The display stage is not considered as a part of applet’s life cycle .  The default version of the display state does absolutely nothing.  Syntax: public void paint(Graphics g) {…………… ………(Action) } DISPLAY STAGE paint() THE DISPLAY STAGE
  • 12. IDLE STATE stop() THE IDLE STAGE:  An Applet becomes idle when we leave the page containing the currently running applet.  If we use a thread to run the applet , we must use stop() method to terminate the thread.  We must override the stop() method.  Syntax: public void stop() {……….. …..(Action) …….. }
  • 13. DEAD STATE destroy() THE DEAD STAGE  Dead State = Removed from memory.  This occurs automatically when we exit the browser state.  Invoking the destroy() method cleans up the resources created by the applet.  It can be overridden only once like the init() stage.
  • 14.  Syntax: public void destroy() { …………….. ……(Action) …………. }
  • 15. APPLICATION:  When we need something dynamic in the webpage : Smart Presentation of statistical data.  When we require flash outputs : Creative presentation.  Creating Remote Applets and storing them in the internet for others to download and use.