Basic HTML version of Foils prepared 23 June 1997

Foil 19 JavaScript versus Java - II

From JavaScript Tutorial for Certificate Course UC Web applications Certificate -- Summer 97. by Geoffrey C. Fox, Tom Scavo


JavaScript: User has full access to capabilities of Navigator and functionality of window components
Java: User relies on Java AWT (or perhaps HotJava browser) for user interface components
JavaScript: No explicit data types (loosely typed)
Java: Variable data types must be declared and carefully "cast" to convert from one type to another (strong typing)
JavaScript: Dynamic bindingÑobject references are interpreted at runtime (typical interpreted behavior)
Java: Static bindingÑobject references are resolved at compile time
Security: Today JavaScript and Java applets have significant security restrictions. This is a (Netscape) runtime and not a language feature!



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Apr 1 1998