They have access to the API in every java. Capabilities that Applications Don't Have Applets get extra capabilities because they are supported by code in the application they run in. Applets have access to this support through the java.applet package, which contains the Applet class and the AppletContext , AppletStub , and AudioClip interfaces. The JDK 1.0.2 release does not support sound in applications. See Playing Sounds for information.
Applets running within a Web browser can easily cause HTML documents to be displayed.
This is supported with the AppletContext showDocument methods. See Communicating with the Browser for more information. Applets can invoke public methods of other applets on the same page. See Sending Messages to Other Applets On the Same Page for information. Although most applets stop running once you leave their page, they don't have to.