Previous | Next | Trail Map | Writing Java Programs | Table of Contents


Writing Java Programs

The Writing Java Programs series covers everything you need to know about the Java language. In addition, some of the lessons describe the use of classes in the java.lang package.

Object-Oriented Programming Concepts: A Primer cuts through all the hype surrounding object-oriented technology and teaches you its core concepts: objects, messages, classes and inheritance. It's important to understand these key concepts before delving into the specifics of the Java language. This lesson also contains a bibliography for further reading on the subject. Feel free to skip this lesson if you are already familiar with object-oriented programming.

The Anatomy of a Java Application talks about the components of a stand-alone Java program in the context of a small application that prints the current date and time. Through this lesson, you will see classes and objects, two fundamental building blocks of object-oriented programming, in action within the context of a Java program.

The Nuts and Bolts of the Java Language introduces you to several components of the Java language by explaining a simple Java application line by line. You will learn about the syntax and semantics of the Java language, plus several features of the Java programming environment.

The String and StringBuffer Classes illustrates how to manipulate character data using the String and StringBuffer classes. Through this lesson you will also learn about accessor methods and how the compiler uses Strings and StringBuffers behind the scenes.

Command Line Arguments shows you how to accept and process arguments provided on the command line to a Java application. Note that the Java interpreter only passes command line arguments to Java applications--applets use parameters instead. For more information about applet parameters, see Communicating With the User .

Threads of Control discusses in detail the use of threads that enable your Java applications or applets to perform multiple tasks at the same time. This lesson describes when and why you might want to use threads, shows you how to create and manage threads and thread groups in your Java program, and shows you how to avoid common pitfalls such as deadlock and race conditions.

Handling Errors using Exceptions discusses how you can use Java's exception mechanism to handle errors in your programs. In this lesson you will learn what an exception is, how to throw and catch exceptions, what to do with an exception once you've caught it, and how to best use the exception class hierarchy provided by the Java development environment. [PENDING: this lesson is under construction.]

Input and Output Streams [PENDING: this lesson is under construction.]


Previous | Next | Trail Map | Writing Java Programs | Table of Contents