A program that a Java enabled browser can download and run is an Applet.
An applet is embedded in a web-page and runs in the browser context.
The java.applet.Applet class provides a standard interface between the applet and the browser environment.
Applets cannot perform actions such as reading/writing to the file system. Java applications run standalone, outside the browser.