Basic HTML version of Foils prepared 23 June 1997

Foil 5 Java / JavaScript Structure

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


1 Typical Java applet structure
  • Java source Ñ> javac compiler Ñ> JavaVM universal machine code in .class file
  • Store JavaVM .class files on web server
  • Download JavaVM from server to client
  • Interpreter built into browser, which reads JavaVM and executes on client
2 Typical JavaScript structure
  • JavaScript source is embedded in HTML text
  • Combined JavaScript and HTML is downloaded and interpreted by client browser to produce HTML page
  • Particular user actions on HTML page (e.g., mouse clicks and form entries) can invoke JavaScript functions on the client
  • Browser must interpret raw, high-level language, which is substantially slower than interpreting JavaVM where interpreter maps universal machine code into machine code for a particular computer
3 Note in each case , Java and JavaScript use "runtime", which is "compiled, high-performance library" (probably written in C and C++)

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 Wed Apr 1 1998