SlideShare a Scribd company logo
1 of 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!!!

More Related Content

Similar to 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
 

More from 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
 

Recently uploaded

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 

Recently uploaded (20)

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 

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: