A Java applet is a small application that is written in the Java programming language, or another programming language that compiles to Java bytecode, and delivered to users in the form of Java byte-code. The user launched the Java applet from a web page, and the applet was then executed within a Java virtual machine (JVM) in a process separate from the web browser itself. A Java applet could appear in a frame of the web page, a new application window, Sun’s AppletViewer, or a stand-alone tool for testing applets. In the smart card world, applets are sometimes called cardlets, and each applet usually corresponds to a smart card application.
A small program that can be downloaded to and executed on a Java Card. In this book, the term applet is used both for programs running in web browsers as well as for programs running on Java Cards.