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. Code uses built-in, extensible objects, but no classes or inheritance. Object references checked at run-time. Cannot automatically write to hard disk.