Applet is a small java program that run in browser, but JVM is required for run applet in browser. Basically applet is used where user want to put some dynamic content into html page.
There are some features and advantages of Applet
There are some features and advantages of Applet
Features:
- It is a java class file, which is inherit from java.applet.Applet class.
- A applet class file don't take main() method for entry point.
- Applet codes are embedded in HTML page
- For run the applet code in browser, must to install JVM in the client machine
- During the execution of applet code in browser, code first to download in the client machine.
Advantages:
- Very less response time because Applet designed for client machine. If applet is used for server machine then server take more time to execute applet code.
- More secure
- Platform independent, so it can run on any platform that is windows, Linux, UNIX, etc.
- Use for dynamic application
Disadvantages of applet
- For run to its code in browser, must to installed JVM plugin