Basic HTML version of Foils prepared 20 Sept 97

Foil 23 Comparison of Java and JavaScript -- I

From Java Tutorial - Summer 1997 Part 1:Introduction to Java Language CEWES Tutorial, Classes SU/Jackson State -- July 22-25 and Fall 97. by Nancy J. McCracken,Geoffrey C. Fox


1 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
2 Use Java for detailed programming and JavaScript for overall integration of client interface and system
3 JavaScript: Interpreted by client and NOT compiled
4 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)
5 JavaScript: Object based -- no classes or inheritance -- built in extensible objects
6 Java: Object-oriented. Programs consist of object classes with inheritance

in Table To:


© on Sun Oct 12 1997