A Java applet is capable of doing more than just a JavaScript, but hasn't
got the full access to your machine like a full Java application.
An applet still needs the browser to be run in, while a full Java application
could run stand-alone (using just the runtime engine).