Fund. CS II (CS152 2006S)

Class 04: An Introduction to Java (1)

Back to An Introduction to Unix. On to An Introduction to Java (2).

Held: Friday, January 27, 2006

Summary: Today we begin our exploration of Java with a simple program.

Related Pages:




Some Basics of Java

Detour: Packages


Developing Java Programs in Eclipse

Your First Java Program

package rebelsky.introjava;

public class First
  public static void main(String[] args)
    throws Exception
  { pen;
    pen = new, true);
    java.lang.String greeting;
    greeting = "Hello";
  } // main(String[])
} // class First

Let's deconstruct this program

Back to An Introduction to Unix. On to An Introduction to Java (2).

Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Tue May 9 08:31:26 2006.
The source to the document was last modified on Thu Jan 12 14:58:06 2006.
This document may be found at

You may wish to validate this document's HTML ; Valid CSS! ; Check with Bobby

Samuel A. Rebelsky,