Basic HTML version of Foils prepared 18 May 97

Foil 18 Comparison of Java and JavaScript -- I

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


Netscape renames Livescript as Javascript and this is an interesting variant of Java which is fully interpreted (code can be included directly in HTML file)-- use for overall customization of client
Use Java for detailed programming and JavaScript for overall integration of client interface and system
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



© 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