Java's inheritance and strong typing also tend to require tightly coupled object hierarchies. These scripting languages offer programming tools to a much wider audience because of their easier syntax, specialized built-in functionality, and minimal requirements for object creation. The following table compares and contrasts JavaScript and Java. Compiled on server before execution on client. Code uses built-in, extensible objects, but no classes or inheritance.
Applets consist of object classes with inheritance.
Object references checked at run-time. Object references must exist at compile-time. Cannot write to hard disk. Cannot write to hard disk. JavaScript Development A script author is not required to extend, instantiate, or know about classes.