JavaScript: Interpreted by client and NOT compiled
|
Java: Compiled on Server before execution on client
-
Note both are reasonably "pure" C/C++ like languages and do NOT have useful sh/awk text and system enhancements of Perl(5)
|
JavaScript: Object based -- no classes or inheritance -- built in extensible objects
|
Java: Object-oriented. Programs consist of object classes with inheritance
|
JavaScript: Integrated with HTML as embedded ascii but of course HTML looks rather irrelevant at times!
|
Java: Applets distinct from HTML but invoked from HTML Pages
|
JavaScript: do not declare variables' datatypes -- Loose typing
|
Java: MUST declare variables' datatypes -- Strong typing
|
JavaScript -- Dynamic Binding -- object references computed at runtime
|
Java -- Static Binding -- object references must exist at compile time
|
Java and JavaScript are secure and cannot write to disk
|