Applet in Java
Applet in Java
NAME : S.VIJAYATHARSHINI
CLASS :1ST CS
SUBJECT: PROGRAMMING IN JAVA
APPLET IN JAVA-AN OVERVIEW
INTRODUCTIO
N
•An applet is a small Java program that runs
inside a web browser.
•It is embedded in an HTML page and executed
using a Java-enabled browser.
•Unlike standalone applications, applets do not
have a main method.
Applet vs. Application
Feature Applet
Application
Execution Runs in browser Runs independently
2.Create an HTML
file: <html>
<body>
<applet code="MyApplet.class" width="300"
height="200"></applet>
</body>
</html>
❌ Requires Java-enabled
browsers
❌ Limited access to system
resources
❌ Modern web applications prefer
JavaScript & HTML5
Conclusion