Remember that IE4 can access only attributes and methods from a class derived from java.applet.Applet. If you want to call a method or use an attribute in another class, you have to create a method in your applet class that calls the other class's method. It runs inside the web browser and works at client side. An applet is embedded in an HTML page using the APPLET or OBJECT tag and hosted on a web server. Applets are used to make the web site more dynamic and entertaining. Important points : All applets are sub-classes (either directly or indirectly) of java.applet.Applet class.
The following table lists all the examples in the Applets lesson. The first column shows the name of the example. Click on the name of the example to launch the applet. The second column shows a link to a zip file with complete source code. You can open and run the examples in the NetBeans IDE. The HttpSession object is used for session management.A session contains information specific to a particular user across the whole application. When a user enters into a website (or an online application) for the first time HttpSession is obtained via request.getSession(), the user is given a unique ID to identify his session.