What are the main differences between applets and applications?
John Zukowski Applets are created to be embedded within a browser. As such, they have methods that are automatically called by the browser at certain times: init() when first loaded, start() when page loaded/entered, stop() when page left, destroy() when applet unloaded, and paint() when the screen needs to be displayed. In addition, applets have severe security restrictions as they can be loaded from untrusted sources over the Internet. Applications on the other hand need to be installed locally, start execution with the main() method, and have no inherent security restrictions. Beyond this, applications control their own operations.