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. JavaScript Java Scripting Language. 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. Script limited to browser functions. Stand alone applications. Works with HTML elements.