Advanced Web Publishing X52.9749

Java: March 29, 1998

Bibliography

  1. Corporate Java sites: Sun, Netscape, Microsoft.
  2. Lawsuit sites: Sun vs. Microsoft.
  3. O'Reilly has lots of Java books. Here's the one I read.
  4. The World Wide Web Consortium's documentation for HTML tags:
  5. The NYU Java course.

The big picture

Two weeks ago, we saw that JavaScript objects have methods and properties:
document.write("hello")
document.lastModified
Similarly, Java objects have methods and instance variables:
g.drawString("hello", 10, 20)
Color.blue
C++ has them too, but they're called member functions and data members, respectively.

Examples of applets that you can write

  1. Write, compile, and chmod the simplest possible Java applet and put it your web page.
  2. An applet with a variable (vs. a JavaScript program with a variable).
  3. Give "command line arguments" to an applet with the <PARAM> tag.
  4. An applet with more than one method.
  5. A mouse listener.
  6. A digital clock.
  7. Download the precompiled bytecode of someone else's applet.
  8. A rudimentary chat room.