SlideShare une entreprise Scribd logo
1  sur  12
NADAR SARASWATHI COLLEGE OF
ARTS AND SCIENCE
VADAPUTHUPATTI,THENI.
DEPARTEMENT OF COMPUTER SCIENCE
ADVANTAGES OVER APPLETS
SUBMITTED BY:
S.AISHWARYA LAKSHMI I-M.SC(cs)
INTRODUCTION
Applet is a special type of program that is embeded in the webpage to generate the
dynamic content. It runs inside the browser and work at client side.
It can be executed by browsers running under many platform
including:
Linux ,windows , Mac os.
Applets don’t use the main( )method , but when they are load automatically call
certain methods.
They are:
init , start , paint , stop, destroy.
WHAT IS AN APPLET
An applet is a small java program that runs in a java
enabled web browser. Java applet is a small piece of java code that is
embedded into HTML page, which gets executed when the HTML page
loads into the browser .
Applets provide powerful client-side functionality.
As applets are loaded from remote machines and executed on client-
side.
They are various applets advantages and applets restrictions :
APPLET ADVANTAGES
Applets have many advantages over stand-alone application . some of them
are:
 As applet is a small tasks on client-side machines . They can play sounds, show images,
get user inputs, get mouse clicks and even get user key strokes , etc…
 Applets creates and edit graphics on client –side which are different and independent of
client-side platform.
 As compared to stand alone application applets are small in size , the advantage of
transferring it over network makes it more usable.
 Applets are secure and safe to use because they cannot perform any modifications over
local system.
APPLETS RESTRICTION
Applets have many restrictions over the areas of security because they are obtained
from remote machines and can harm client-side machine.
Some of them are as follows:
Applet itself cannot run or modify any application on the local system.
Applet has no access to client – side resources such as files, OS etc.
Applet has little restriction when it comes to communication. It can communicate
only with the machine from which it was loaded.
Applet cannot work with native method.
APPLET LIFE CYCLE
INITIALIZATION STATE
• Applet enter in initialize state when it is loaded.
• In the state called init( ) method &override the code.
• This state occurs only ones in the applet life cycle.
• In this state we done following task:
 Creating object.
 Load image or font.
 Set text or background color.
 Setup initials values.
RUNNING STATE
• Applet enter the running state when the system call the start()
method of applet class.
• This state occurs automatically after the applet is initialization.
• Starting can also occurs if the applets is already in “stopped” state.
• We may override the start( ) method to execute the statement.
IDLE OR STOPPED STATE
• Applet become idle when it is stopped from running.
• Stopping occurs automatically when we leave the current
page.
• We may override the stop( ) method to execute the
statement.
DEAD STATE
• Applet said to be dead when it is removed from
memory.
• This state called destroy( ) automatically when we
quite from a browsers.
• This state occurs only once in applet life cycle.
• This state is used to clean up resource.
JAVA APPLET PROGRAM
import java . awt .*;
import java . applet . *;
Public class helloworld extends Applet {
public void paint (Graphics g)
{
g.drawstring (“Hello world !”,50,50);
}
}
OUTPUT:
THANK YOU!!!

Contenu connexe

Similaire à APPLET.pptx

Java basics notes
Java basics notesJava basics notes
Java basics notes
Nexus
 

Similaire à APPLET.pptx (20)

Lecture1 oopj
Lecture1 oopjLecture1 oopj
Lecture1 oopj
 
Advanced Programming, Java Programming, Applets.ppt
Advanced Programming, Java Programming, Applets.pptAdvanced Programming, Java Programming, Applets.ppt
Advanced Programming, Java Programming, Applets.ppt
 
JAVA.pptx
JAVA.pptxJAVA.pptx
JAVA.pptx
 
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
 
Applet in JAVA
Applet in JAVAApplet in JAVA
Applet in JAVA
 
Jsp applet
Jsp appletJsp applet
Jsp applet
 
ITFT- Applet in java
ITFT- Applet in javaITFT- Applet in java
ITFT- Applet in java
 
applet.pptx
applet.pptxapplet.pptx
applet.pptx
 
Java Applets
Java AppletsJava Applets
Java Applets
 
Java applet
Java appletJava applet
Java applet
 
Appletjava
AppletjavaAppletjava
Appletjava
 
JAVA INTRODUCTION
JAVA INTRODUCTIONJAVA INTRODUCTION
JAVA INTRODUCTION
 
JAVA INTRODUCTION
JAVA INTRODUCTIONJAVA INTRODUCTION
JAVA INTRODUCTION
 
Java applet-basics
Java applet-basicsJava applet-basics
Java applet-basics
 
Java applet-basics
Java applet-basicsJava applet-basics
Java applet-basics
 
Oops
OopsOops
Oops
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
 
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)
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
 
Java
JavaJava
Java
 

Plus de Aishwarya SenthilNathan (13)

cloud computing.pptx
cloud computing.pptxcloud computing.pptx
cloud computing.pptx
 
IOT.pptx
IOT.pptxIOT.pptx
IOT.pptx
 
women empowerment.pptx
women empowerment.pptxwomen empowerment.pptx
women empowerment.pptx
 
Digital Image Processing.pptx
Digital Image Processing.pptxDigital Image Processing.pptx
Digital Image Processing.pptx
 
Artifical Intelligence And Machine Learning Algorithum.pptx
Artifical Intelligence And Machine Learning Algorithum.pptxArtifical Intelligence And Machine Learning Algorithum.pptx
Artifical Intelligence And Machine Learning Algorithum.pptx
 
Cloud Computing.pptx
Cloud Computing.pptxCloud Computing.pptx
Cloud Computing.pptx
 
SENTIMENT ANALYSIS OF FEEDBACK DATA USING MACHINE LEARNING TECHNIQUE.pptx
SENTIMENT ANALYSIS OF FEEDBACK DATA USING MACHINE LEARNING TECHNIQUE.pptxSENTIMENT ANALYSIS OF FEEDBACK DATA USING MACHINE LEARNING TECHNIQUE.pptx
SENTIMENT ANALYSIS OF FEEDBACK DATA USING MACHINE LEARNING TECHNIQUE.pptx
 
2D Graphics animation - Bouncing ball(Python).pptx
2D Graphics animation - Bouncing ball(Python).pptx2D Graphics animation - Bouncing ball(Python).pptx
2D Graphics animation - Bouncing ball(Python).pptx
 
Growth Of IOT NETWORK.pptx
Growth Of IOT NETWORK.pptxGrowth Of IOT NETWORK.pptx
Growth Of IOT NETWORK.pptx
 
DATA MINING.pptx
DATA MINING.pptxDATA MINING.pptx
DATA MINING.pptx
 
Software Engineering.pptx
Software Engineering.pptxSoftware Engineering.pptx
Software Engineering.pptx
 
HUMANOID ROBOTS.pptx
HUMANOID ROBOTS.pptxHUMANOID ROBOTS.pptx
HUMANOID ROBOTS.pptx
 
LR PARSE.pptx
LR PARSE.pptxLR PARSE.pptx
LR PARSE.pptx
 

Dernier

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Dernier (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 

APPLET.pptx

  • 1. NADAR SARASWATHI COLLEGE OF ARTS AND SCIENCE VADAPUTHUPATTI,THENI. DEPARTEMENT OF COMPUTER SCIENCE ADVANTAGES OVER APPLETS SUBMITTED BY: S.AISHWARYA LAKSHMI I-M.SC(cs)
  • 2. INTRODUCTION Applet is a special type of program that is embeded in the webpage to generate the dynamic content. It runs inside the browser and work at client side. It can be executed by browsers running under many platform including: Linux ,windows , Mac os. Applets don’t use the main( )method , but when they are load automatically call certain methods. They are: init , start , paint , stop, destroy.
  • 3. WHAT IS AN APPLET An applet is a small java program that runs in a java enabled web browser. Java applet is a small piece of java code that is embedded into HTML page, which gets executed when the HTML page loads into the browser . Applets provide powerful client-side functionality. As applets are loaded from remote machines and executed on client- side. They are various applets advantages and applets restrictions :
  • 4. APPLET ADVANTAGES Applets have many advantages over stand-alone application . some of them are:  As applet is a small tasks on client-side machines . They can play sounds, show images, get user inputs, get mouse clicks and even get user key strokes , etc…  Applets creates and edit graphics on client –side which are different and independent of client-side platform.  As compared to stand alone application applets are small in size , the advantage of transferring it over network makes it more usable.  Applets are secure and safe to use because they cannot perform any modifications over local system.
  • 5. APPLETS RESTRICTION Applets have many restrictions over the areas of security because they are obtained from remote machines and can harm client-side machine. Some of them are as follows: Applet itself cannot run or modify any application on the local system. Applet has no access to client – side resources such as files, OS etc. Applet has little restriction when it comes to communication. It can communicate only with the machine from which it was loaded. Applet cannot work with native method.
  • 7. INITIALIZATION STATE • Applet enter in initialize state when it is loaded. • In the state called init( ) method &override the code. • This state occurs only ones in the applet life cycle. • In this state we done following task:  Creating object.  Load image or font.  Set text or background color.  Setup initials values.
  • 8. RUNNING STATE • Applet enter the running state when the system call the start() method of applet class. • This state occurs automatically after the applet is initialization. • Starting can also occurs if the applets is already in “stopped” state. • We may override the start( ) method to execute the statement.
  • 9. IDLE OR STOPPED STATE • Applet become idle when it is stopped from running. • Stopping occurs automatically when we leave the current page. • We may override the stop( ) method to execute the statement.
  • 10. DEAD STATE • Applet said to be dead when it is removed from memory. • This state called destroy( ) automatically when we quite from a browsers. • This state occurs only once in applet life cycle. • This state is used to clean up resource.
  • 11. JAVA APPLET PROGRAM import java . awt .*; import java . applet . *; Public class helloworld extends Applet { public void paint (Graphics g) { g.drawstring (“Hello world !”,50,50); } } OUTPUT: