HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared 21 February 97

Foil 25 JavaScript Compared to Java - II

From Feb 12 Delivered Lecture for Course CPS616 -- Basic JavaScript Functionalities and Examples CPS616 spring 1997 -- Feb 12 1997. by Geoffrey Fox * See also color IMAGE
Secs 237.6
JavaScript: User has full access to capabilities of Netscape Navigator in functionality of window components
Java: User relies on Java AWT (or potentially HotJava browser) for features of Window Components
JavaScript: No explicit data types (just var) --- loose typing
Java: Variable data types must be declared and carefully "cast" to convert -- strong typing
JavaScript: Dynamic Binding. Object references are interpreted at runtime (typical interpreter)
Java: Static Binding. Object references must exist at compile time.
Security: Both JavaScript and Java applets as implemented today 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 Fri Feb 21 1997