Basic HTML version of Foils prepared 18 May 97

Foil 19 Comparison of Java and JavaScript -- II

From Java Tutorial - Spring 1997 Part 1:Introduction to Java Language Peking Tutorial, Web Certificate -- Spring-Summer 1997. by Nancy J. McCracken,Geoffrey C. Fox


1 JavaScript: Integrated with HTML as embedded ascii but of course HTML looks rather irrelevant at times!
2 Java: Applets distinct from HTML but invoked from HTML Pages
3 JavaScript: do not declare variables' datatypes -- Loose typing
4 Java: MUST declare variables' datatypes -- Strong typing
5 JavaScript -- Dynamic Binding -- object references computed at runtime
6 Java -- Static Binding -- object references must exist at compile time
7 Java and JavaScript are secure and cannot write to disk
8 JavaScript has most user interface features of Java (such as buttons and frames), except not mouse interactions like "drag and drop".

in Table To:


© 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 Thu Jan 8 1998