SlideShare a Scribd company logo
1 
Basics of Applet
2 
Objective 
On completion of this period, you will be able 
to learn 
• Basics of applet
3 
Recap 
In the previous classes, we have studied about 
• The various I/O streams and classes 
• How to write console based Java programs or 
applications
4 
Basics of Applets 
• Applets are small Java programs that are used 
in Internet computing 
• Applets 
• Transported over the Internet 
• Automatically installed in client machine 
• Run as part of a web document 
• Applets can be run using a tool ‘appletviewer’
5 
Basics of Applets contd.. 
• Applets interact with the user through the AWT, 
not through the console-based I/O classes 
• Clients download applets via Web browser 
• Browser runs applet in a Java Virtual Machine 
(JVM)
6 
Basics of Applets contd.. 
• Applets can be classified into two types 
• Local applets 
• Remote applets 
• Local applet 
• Developed and stored in local system 
• No need for internet connection for the local system 
• Local directories were searched to locate the 
specified applet
7 
Basics of Applets contd.. 
• Remote applet 
• Developed by someone else 
• Stored on a remote computer connected to the 
internet 
• Our system needs an internet connection 
• The applet is downloaded into our local system via 
internet 
• Run it on our system
8 
Loading of Remote Applet 
Internet 
Local Computer 
(Client) 
Remote Computer 
(Server) 
Remote Applet 
Fig. 53.1 Loading of remote applet 
Applet
9 
Web Browsers Requests Applet 
Client 
Computer 
Fig. 53.2 Request for applet 
1. Browser shows web 
document 
2. Web document contains 
an applet tag 
3. Web browser identifies 
the tag 
4. Client computer makes 
a request to web 
browser via internet 
1, 2 
Browser showing 
web document 
Web Server 
3 
4 4
Web Server Transmits Applet along with HTML 
7 6 5 
10 
5. Web server locates the 
applet 
6. Sends the applet code to 
the web browser 
7. Through internet it is 
downloaded to client 
8. Applet is executed 
4 4 
Fig. 53.3 Applet downloading 
3 
1, 2 
Browser showing 
web document 
Client 
Computer 
5 
8 
HTML, applets etc
11 
Some Points About Applets 
• Applets do not use main() method 
• They run in a browser 
• They cannot read or write the files from the 
local system 
• Applets cannot run any other program from the 
local computer
Some Points About Applets contd.. 
• Applets are restricted from using libraries from 
other languages such as C or C++ 
• They cannot communicate with other servers 
on the local network 
12
13 
Discussion 
• What are the differences between applications and applets ? 
main() method 
Run stand-alone Possible Not possible 
Access local files 
Applications Applets 
Needed Not needed 
Can access 
Cannot access 
Run local programs Can run Cannot run 
Internet connection Needed for Remote 
applet 
GUI based 
Generally not 
needed 
GUI May or may not
14 
Summary 
• Java programs are two types 
• application 
• applet 
• Java applications are the console based 
programs 
• Applets are web enabled internet applications 
• Two types of applets 
• Local applets 
• Remote applets
15 
Quiz 
1. Applets are console based applications 
1. true 
2. false
16 
Quiz contd.. 
2. Internet browser runs Java applets 
1. true 
2. false
17 
3. Java applications are web enabled internet 
applications 
1. true 
2. false 
Quiz contd..
18 
Frequently Asked Questions 
• Explain about Java applets 
• List the differences between applets 
and applications

More Related Content

What's hot

Core java
Core java Core java
Core java
Shubham singh
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
Michael Dalisay
 
Java Presentation
 Java Presentation Java Presentation
Java Presentation
Marq2014
 
Learn-IT-All Your Own e-Learning Portal
Learn-IT-All Your Own e-Learning PortalLearn-IT-All Your Own e-Learning Portal
Learn-IT-All Your Own e-Learning Portal
Nimble Esolutions
 
Introduction To AOP
Introduction To AOPIntroduction To AOP
Introduction To AOP
Donald Belcham
 
Java
JavaJava
Lara Technology
Lara TechnologyLara Technology
Lara Technology
laratechnologies
 
Where is Joomla Going?
Where is Joomla Going?Where is Joomla Going?
Where is Joomla Going?
jlleblanc
 
Java selenium web driver
Java selenium web driverJava selenium web driver
Java selenium web driver
KadarkaraiSelvam
 
Dev days. windows phone development
Dev days. windows phone developmentDev days. windows phone development
Dev days. windows phone development
Volha Banadyseva
 
Introduction of java technology
Introduction of java technologyIntroduction of java technology
Introduction of java technology
technologieslara
 
JAVA FEATURES
JAVA FEATURESJAVA FEATURES
JAVA FEATURES
shalinikarunakaran1
 
Intro To AOP
Intro To AOPIntro To AOP
Intro To AOP
Donald Belcham
 
Joomla 4 - What to expect - Joomla Day UK 2017
Joomla 4 - What to expect - Joomla Day UK 2017Joomla 4 - What to expect - Joomla Day UK 2017
Joomla 4 - What to expect - Joomla Day UK 2017
George Wilson
 
Writing better code: How the Netbeans IDE Helps you Write, Test and Debug Java
Writing better code: How the Netbeans IDE Helps you Write, Test and Debug JavaWriting better code: How the Netbeans IDE Helps you Write, Test and Debug Java
Writing better code: How the Netbeans IDE Helps you Write, Test and Debug Java
idrsolutions
 
Presentation5
Presentation5Presentation5
Presentation5
Natasha Bains
 
Ohoh
OhohOhoh
Cloud Computing in Systems Programming Curriculum
Cloud Computing in Systems Programming CurriculumCloud Computing in Systems Programming Curriculum
Cloud Computing in Systems Programming Curriculum
Steven Miller
 

What's hot (18)

Core java
Core java Core java
Core java
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Java Presentation
 Java Presentation Java Presentation
Java Presentation
 
Learn-IT-All Your Own e-Learning Portal
Learn-IT-All Your Own e-Learning PortalLearn-IT-All Your Own e-Learning Portal
Learn-IT-All Your Own e-Learning Portal
 
Introduction To AOP
Introduction To AOPIntroduction To AOP
Introduction To AOP
 
Java
JavaJava
Java
 
Lara Technology
Lara TechnologyLara Technology
Lara Technology
 
Where is Joomla Going?
Where is Joomla Going?Where is Joomla Going?
Where is Joomla Going?
 
Java selenium web driver
Java selenium web driverJava selenium web driver
Java selenium web driver
 
Dev days. windows phone development
Dev days. windows phone developmentDev days. windows phone development
Dev days. windows phone development
 
Introduction of java technology
Introduction of java technologyIntroduction of java technology
Introduction of java technology
 
JAVA FEATURES
JAVA FEATURESJAVA FEATURES
JAVA FEATURES
 
Intro To AOP
Intro To AOPIntro To AOP
Intro To AOP
 
Joomla 4 - What to expect - Joomla Day UK 2017
Joomla 4 - What to expect - Joomla Day UK 2017Joomla 4 - What to expect - Joomla Day UK 2017
Joomla 4 - What to expect - Joomla Day UK 2017
 
Writing better code: How the Netbeans IDE Helps you Write, Test and Debug Java
Writing better code: How the Netbeans IDE Helps you Write, Test and Debug JavaWriting better code: How the Netbeans IDE Helps you Write, Test and Debug Java
Writing better code: How the Netbeans IDE Helps you Write, Test and Debug Java
 
Presentation5
Presentation5Presentation5
Presentation5
 
Ohoh
OhohOhoh
Ohoh
 
Cloud Computing in Systems Programming Curriculum
Cloud Computing in Systems Programming CurriculumCloud Computing in Systems Programming Curriculum
Cloud Computing in Systems Programming Curriculum
 

Viewers also liked

The Death of Privacy in Three Acts
The Death of Privacy in Three ActsThe Death of Privacy in Three Acts
The Death of Privacy in Three Acts
Lilian Edwards
 
Final Project Cultura Inglesa
Final Project Cultura InglesaFinal Project Cultura Inglesa
Final Project Cultura Inglesa
Brandon Villalobos Martínez
 
Punimiseminarik bankatqendrore-110513164651-phpapp02
Punimiseminarik bankatqendrore-110513164651-phpapp02Punimiseminarik bankatqendrore-110513164651-phpapp02
Punimiseminarik bankatqendrore-110513164651-phpapp02emiliosm
 
The death of data protection sans obama
The death of data protection sans obamaThe death of data protection sans obama
The death of data protection sans obama
Lilian Edwards
 
Tarea Gerson
Tarea GersonTarea Gerson
Tarea Gerson
gersontaller
 
Back To Basics CEO
Back To Basics CEOBack To Basics CEO
Back To Basics CEO
Back To Basics Management
 
IT law : the middle kingdom between east and West
IT law : the middle kingdom between east and WestIT law : the middle kingdom between east and West
IT law : the middle kingdom between east and West
Lilian Edwards
 
What do we do with aproblem like revenge porn ?
What do we do with  aproblem like  revenge porn ?What do we do with  aproblem like  revenge porn ?
What do we do with aproblem like revenge porn ?
Lilian Edwards
 
Cdas 2012, lilian edwards and edina harbinja
Cdas 2012, lilian edwards and edina harbinjaCdas 2012, lilian edwards and edina harbinja
Cdas 2012, lilian edwards and edina harbinja
Lilian Edwards
 
Civil rights movement
Civil rights movementCivil rights movement
Civil rights movement
Prasoon Gupta
 
The death of data protection
The death of data protection The death of data protection
The death of data protection
Lilian Edwards
 
Slave to the Algo-Rhythms?
Slave to the Algo-Rhythms?Slave to the Algo-Rhythms?
Slave to the Algo-Rhythms?
Lilian Edwards
 
Night vision technology
Night vision technologyNight vision technology
Night vision technology
Cihan Tarıman
 
Police surveillance of social media - do you have a reasonable expectation of...
Police surveillance of social media - do you have a reasonable expectation of...Police surveillance of social media - do you have a reasonable expectation of...
Police surveillance of social media - do you have a reasonable expectation of...
Lilian Edwards
 
Livescribe smartpen application for educators presentation
Livescribe smartpen application for educators presentationLivescribe smartpen application for educators presentation
Livescribe smartpen application for educators presentation
gmihalik
 
Sejarah tingkatan 2bab1(1)
Sejarah tingkatan 2bab1(1)Sejarah tingkatan 2bab1(1)
Sejarah tingkatan 2bab1(1)
Noor Syafini Shahidan
 
the Death of Privacy in Three Acts
the Death of Privacy in Three Actsthe Death of Privacy in Three Acts
the Death of Privacy in Three Acts
Lilian Edwards
 

Viewers also liked (18)

The Death of Privacy in Three Acts
The Death of Privacy in Three ActsThe Death of Privacy in Three Acts
The Death of Privacy in Three Acts
 
Final Project Cultura Inglesa
Final Project Cultura InglesaFinal Project Cultura Inglesa
Final Project Cultura Inglesa
 
Punimiseminarik bankatqendrore-110513164651-phpapp02
Punimiseminarik bankatqendrore-110513164651-phpapp02Punimiseminarik bankatqendrore-110513164651-phpapp02
Punimiseminarik bankatqendrore-110513164651-phpapp02
 
The death of data protection sans obama
The death of data protection sans obamaThe death of data protection sans obama
The death of data protection sans obama
 
Tarea Gerson
Tarea GersonTarea Gerson
Tarea Gerson
 
Back To Basics CEO
Back To Basics CEOBack To Basics CEO
Back To Basics CEO
 
Excelsunum
ExcelsunumExcelsunum
Excelsunum
 
IT law : the middle kingdom between east and West
IT law : the middle kingdom between east and WestIT law : the middle kingdom between east and West
IT law : the middle kingdom between east and West
 
What do we do with aproblem like revenge porn ?
What do we do with  aproblem like  revenge porn ?What do we do with  aproblem like  revenge porn ?
What do we do with aproblem like revenge porn ?
 
Cdas 2012, lilian edwards and edina harbinja
Cdas 2012, lilian edwards and edina harbinjaCdas 2012, lilian edwards and edina harbinja
Cdas 2012, lilian edwards and edina harbinja
 
Civil rights movement
Civil rights movementCivil rights movement
Civil rights movement
 
The death of data protection
The death of data protection The death of data protection
The death of data protection
 
Slave to the Algo-Rhythms?
Slave to the Algo-Rhythms?Slave to the Algo-Rhythms?
Slave to the Algo-Rhythms?
 
Night vision technology
Night vision technologyNight vision technology
Night vision technology
 
Police surveillance of social media - do you have a reasonable expectation of...
Police surveillance of social media - do you have a reasonable expectation of...Police surveillance of social media - do you have a reasonable expectation of...
Police surveillance of social media - do you have a reasonable expectation of...
 
Livescribe smartpen application for educators presentation
Livescribe smartpen application for educators presentationLivescribe smartpen application for educators presentation
Livescribe smartpen application for educators presentation
 
Sejarah tingkatan 2bab1(1)
Sejarah tingkatan 2bab1(1)Sejarah tingkatan 2bab1(1)
Sejarah tingkatan 2bab1(1)
 
the Death of Privacy in Three Acts
the Death of Privacy in Three Actsthe Death of Privacy in Three Acts
the Death of Privacy in Three Acts
 

Similar to Basicsofapplets 53-130303003217-phpapp02

Basics of applets.53
Basics of applets.53Basics of applets.53
Basics of applets.53
myrajendra
 
Applets_Basic Introduction
Applets_Basic IntroductionApplets_Basic Introduction
Applets_Basic Introduction
Charulatha Jain
 
JAVA.pptx
JAVA.pptxJAVA.pptx
An introduction to java programming language forbeginners(java programming tu...
An introduction to java programming language forbeginners(java programming tu...An introduction to java programming language forbeginners(java programming tu...
An introduction to java programming language forbeginners(java programming tu...
Daroko blog(www.professionalbloggertricks.com)
 
Chapter 11:Understanding Client-Side Technologies
Chapter 11:Understanding Client-Side TechnologiesChapter 11:Understanding Client-Side Technologies
Chapter 11:Understanding Client-Side Technologies
It Academy
 
Java Restart with WebFX
Java Restart with WebFX Java Restart with WebFX
Java Restart with WebFX
Nikita Lipsky
 
Applet execution
Applet execution Applet execution
Applet execution
myrajendra
 
TechGIG_Memory leaks in_java_webnair_26th_july_2012
TechGIG_Memory leaks in_java_webnair_26th_july_2012TechGIG_Memory leaks in_java_webnair_26th_july_2012
TechGIG_Memory leaks in_java_webnair_26th_july_2012
Ashish Bhasin
 
Migrating From Applets to Java Desktop Apps in JavaFX
Migrating From Applets to Java Desktop Apps in JavaFXMigrating From Applets to Java Desktop Apps in JavaFX
Migrating From Applets to Java Desktop Apps in JavaFX
Bruno Borges
 
Mobile Devices
Mobile DevicesMobile Devices
Mobile Devices
Ynon Perek
 
Development of a mobile app for Android
Development of a mobile app for AndroidDevelopment of a mobile app for Android
Development of a mobile app for Android
AlexJReid
 
Advanced Internet of Things firmware engineering with Thingsquare and Contiki...
Advanced Internet of Things firmware engineering with Thingsquare and Contiki...Advanced Internet of Things firmware engineering with Thingsquare and Contiki...
Advanced Internet of Things firmware engineering with Thingsquare and Contiki...
Adam Dunkels
 
Webapi
WebapiWebapi
Webapi
Jan Jongboom
 
Thread.pptx
Thread.pptxThread.pptx
Thread.pptx
Karthik Rohan
 
Thread.pptx
Thread.pptxThread.pptx
Thread.pptx
Karthik Rohan
 
Thread.pptx
Thread.pptxThread.pptx
Thread.pptx
Karthik Rohan
 
Scheduling Thread
Scheduling  ThreadScheduling  Thread
Scheduling Thread
MuhammadBilal187526
 
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Ryan Cuprak
 
JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).ppt
AliyaJav
 
10 clues showing that you are doing OSGi in the wrong manner - Jerome Moliere
10 clues showing that you are doing OSGi in the wrong manner - Jerome Moliere10 clues showing that you are doing OSGi in the wrong manner - Jerome Moliere
10 clues showing that you are doing OSGi in the wrong manner - Jerome Moliere
mfrancis
 

Similar to Basicsofapplets 53-130303003217-phpapp02 (20)

Basics of applets.53
Basics of applets.53Basics of applets.53
Basics of applets.53
 
Applets_Basic Introduction
Applets_Basic IntroductionApplets_Basic Introduction
Applets_Basic Introduction
 
JAVA.pptx
JAVA.pptxJAVA.pptx
JAVA.pptx
 
An introduction to java programming language forbeginners(java programming tu...
An introduction to java programming language forbeginners(java programming tu...An introduction to java programming language forbeginners(java programming tu...
An introduction to java programming language forbeginners(java programming tu...
 
Chapter 11:Understanding Client-Side Technologies
Chapter 11:Understanding Client-Side TechnologiesChapter 11:Understanding Client-Side Technologies
Chapter 11:Understanding Client-Side Technologies
 
Java Restart with WebFX
Java Restart with WebFX Java Restart with WebFX
Java Restart with WebFX
 
Applet execution
Applet execution Applet execution
Applet execution
 
TechGIG_Memory leaks in_java_webnair_26th_july_2012
TechGIG_Memory leaks in_java_webnair_26th_july_2012TechGIG_Memory leaks in_java_webnair_26th_july_2012
TechGIG_Memory leaks in_java_webnair_26th_july_2012
 
Migrating From Applets to Java Desktop Apps in JavaFX
Migrating From Applets to Java Desktop Apps in JavaFXMigrating From Applets to Java Desktop Apps in JavaFX
Migrating From Applets to Java Desktop Apps in JavaFX
 
Mobile Devices
Mobile DevicesMobile Devices
Mobile Devices
 
Development of a mobile app for Android
Development of a mobile app for AndroidDevelopment of a mobile app for Android
Development of a mobile app for Android
 
Advanced Internet of Things firmware engineering with Thingsquare and Contiki...
Advanced Internet of Things firmware engineering with Thingsquare and Contiki...Advanced Internet of Things firmware engineering with Thingsquare and Contiki...
Advanced Internet of Things firmware engineering with Thingsquare and Contiki...
 
Webapi
WebapiWebapi
Webapi
 
Thread.pptx
Thread.pptxThread.pptx
Thread.pptx
 
Thread.pptx
Thread.pptxThread.pptx
Thread.pptx
 
Thread.pptx
Thread.pptxThread.pptx
Thread.pptx
 
Scheduling Thread
Scheduling  ThreadScheduling  Thread
Scheduling Thread
 
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
 
JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).ppt
 
10 clues showing that you are doing OSGi in the wrong manner - Jerome Moliere
10 clues showing that you are doing OSGi in the wrong manner - Jerome Moliere10 clues showing that you are doing OSGi in the wrong manner - Jerome Moliere
10 clues showing that you are doing OSGi in the wrong manner - Jerome Moliere
 

Basicsofapplets 53-130303003217-phpapp02

  • 1. 1 Basics of Applet
  • 2. 2 Objective On completion of this period, you will be able to learn • Basics of applet
  • 3. 3 Recap In the previous classes, we have studied about • The various I/O streams and classes • How to write console based Java programs or applications
  • 4. 4 Basics of Applets • Applets are small Java programs that are used in Internet computing • Applets • Transported over the Internet • Automatically installed in client machine • Run as part of a web document • Applets can be run using a tool ‘appletviewer’
  • 5. 5 Basics of Applets contd.. • Applets interact with the user through the AWT, not through the console-based I/O classes • Clients download applets via Web browser • Browser runs applet in a Java Virtual Machine (JVM)
  • 6. 6 Basics of Applets contd.. • Applets can be classified into two types • Local applets • Remote applets • Local applet • Developed and stored in local system • No need for internet connection for the local system • Local directories were searched to locate the specified applet
  • 7. 7 Basics of Applets contd.. • Remote applet • Developed by someone else • Stored on a remote computer connected to the internet • Our system needs an internet connection • The applet is downloaded into our local system via internet • Run it on our system
  • 8. 8 Loading of Remote Applet Internet Local Computer (Client) Remote Computer (Server) Remote Applet Fig. 53.1 Loading of remote applet Applet
  • 9. 9 Web Browsers Requests Applet Client Computer Fig. 53.2 Request for applet 1. Browser shows web document 2. Web document contains an applet tag 3. Web browser identifies the tag 4. Client computer makes a request to web browser via internet 1, 2 Browser showing web document Web Server 3 4 4
  • 10. Web Server Transmits Applet along with HTML 7 6 5 10 5. Web server locates the applet 6. Sends the applet code to the web browser 7. Through internet it is downloaded to client 8. Applet is executed 4 4 Fig. 53.3 Applet downloading 3 1, 2 Browser showing web document Client Computer 5 8 HTML, applets etc
  • 11. 11 Some Points About Applets • Applets do not use main() method • They run in a browser • They cannot read or write the files from the local system • Applets cannot run any other program from the local computer
  • 12. Some Points About Applets contd.. • Applets are restricted from using libraries from other languages such as C or C++ • They cannot communicate with other servers on the local network 12
  • 13. 13 Discussion • What are the differences between applications and applets ? main() method Run stand-alone Possible Not possible Access local files Applications Applets Needed Not needed Can access Cannot access Run local programs Can run Cannot run Internet connection Needed for Remote applet GUI based Generally not needed GUI May or may not
  • 14. 14 Summary • Java programs are two types • application • applet • Java applications are the console based programs • Applets are web enabled internet applications • Two types of applets • Local applets • Remote applets
  • 15. 15 Quiz 1. Applets are console based applications 1. true 2. false
  • 16. 16 Quiz contd.. 2. Internet browser runs Java applets 1. true 2. false
  • 17. 17 3. Java applications are web enabled internet applications 1. true 2. false Quiz contd..
  • 18. 18 Frequently Asked Questions • Explain about Java applets • List the differences between applets and applications