What is Java Applet?
Applet is a special type of program that is embedded in the webpage to generate dynamic content. It runs inside the browser and works on the client side.
Advantage of Applet
There are many advantages of applet. They are as follows:
- It works on the client side so less response time.
- Secured
- It can be executed by browsers running under many platforms, including Linux, Windows, Mac Os, etc.
Important points :
- All applets are sub-classes (directly or indirectly) of java.applet.Applet class.
- Applets are not standalone; they operate within a web browser or applet viewer. The JDK includes a standard tool called the applet viewer for running them.
- Generally, the execution of an applet doesn't begin at the main() method.
- System.out.println() does not perform the applet window output. Rather it is handled with various AWT methods, such as drawString().
