pSources
  • Winston, Patrick H. & Narasimhan, Sundar. On to Java. Reading, MA: Addison-Wesley, 1998. This is a clever book that teaches Java by developing one book-length example.
  • Horton, Ivor. Beginning Java 2. Wrox Press, 1999. This is a useful book that is topically arranged.
eSources On Your Machine
Our lab machines have several Java editors that contain descriptions of the classes. For example, go to Start > Programs > Programming, Development Tools > Microsoft Visual J++ 6.0
When J++ comes up, go to Help > Index. Select Search and type in "Java API Packages" {This means Java Application Programming Interface Packages} and then scroll down to select "Java API". You can then search among the various Java classes, especially the java.awt.

Online Java documentation

First Day Exercise

Java is an object-oriented programming language. Java applets are small Java programs that run on web pages.

What's an object?

Java objects can be constructed in more than one way.

What's a constructor?

One sends information to a Java object with a setter, and receive information from a Java object with a getter.

What are getters and setters?

Java is designed as a hierarchical language. Thus children objects can inherit methods and variables from parent objects.

What is inheritance?

Java classes typical inherit numerous methods from standard classes such as A Java applet runs inside your web browser and therefore has some security limitations such as not being able to start a process on your machine.

How do I write an Applet?

[A brief survey of layouts]

Java Applet Examples



Working with XML