In a client application for Navigator, JavaScript statements embedded in an HTML page can recognize and respond to user events such as mouse clicks, form input, and page navigation. The JavaScript language resembles Java, but without Java's static typing and strong type checking. JavaScript supports most of Java's expression syntax and basic control flow constructs. JavaScript has a simple instance-based object model that still provides significant capabilities. JavaScript also supports functions, again without any special declarative requirements.
Functions can be properties of objects, executing as loosely typed methods.
JavaScript statements can get and set exposed properties to query the state or alter the performance of an applet or plug-in. JAVA provides the following features Compiled on server before execution on client. Applets consist of object classes with inheritance. Object references must exist at compile-time. Cannot automatically write to hard disk.