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 automatically write to hard disk. Cannot automatically write to hard disk.