The JavaTM Tutorial
Previous Page Trail Contents Next Page Start of Tutorial Search

Trail: Learning the Java Language


Under Construction: We are in the process of updating and rewriting this trail. Some sections are incomplete and are marked with [PENDING]. Continue to use our feedback form to tell us what you like and don't like about this trail and the tutorial.

This trail covers the fundamentals of programming in the Java language.

Object-Oriented Programming Concepts cuts through the hype surrounding object-oriented technology and teaches you its core concepts: objects, messages, classes, and inheritance. This lesson ends by showing you how these concepts translate into code written in the Java programming language. Feel free to skip this lesson if you are already familiar with object-oriented programming.

The Nuts and Bolts of the Java Language explains a simple Java program. Following this example, you will read about the syntax and semantics of the Java language.

Because Java's syntax is similar to that of other programming languages, particularly C and C++, much of this material will be familiar to seasoned programmers. You may wish to skim this lesson for its main points and use it as a reference.

Objects and Classes in Java shows you how Java implements the concepts described in the first lesson of this trail. You will learn how to create, use, and destroy objects and how to write the classes from which objects are created. The last section introduces you to the Spot applet and uses it to discuss the practicalities of subclassing another class, implementing an interface, and using an inner class to implement an adapter class. Every Java programmer needs to be facile with the technology presented by this lesson.

More Features of the Java Language is a lesson about family planning. The topics discussed here-inheritance, interfaces, nested classes, and packages-are all features of the Java language that help you to organize and structure your classes and their relationships to one another. This lesson not only shows you how to use these features of Java, but also talks about when and why you would use them.

If you don't need this information right away and want to get on with the business of writing some applets, feel free to leave this lesson for later and go straight to the next trail, Writing Applets(in the Learning the Java Language trail).

Common Problems (and Their Solutions) explains the solutions to some problems you might run into while learning the Java language.


Previous Page Trail Contents Next Page Start of Tutorial Search