The JavaTM Tutorial
Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail Search
Feedback Form

Trail: Learning the Java Language

Lesson: Object Basics and Simple Data Objects


This chapter has been updated to reflect features and conventions of the latest release, JDK 5.0, but it is not yet final. We've published this preliminary version so you can get the most current information now, and so you can tell us (please!) about errors, omissions, or improvements we can make to this tutorial.
This chapter begins with a general discussion about the life cycle of objects. The information presented applies to objects of all types and includes how to create an object, how to use an object, and how the system cleans up the object when it's no longer being used.

Next, this chapter explains how to use the core classes and built-in support for character data, numeric data, and arrays. It covers the following topics:

The Java platform groups its classes into functional packages. Instead of writing your own classes to represent character, string, or numeric data, you should use the classes that are already provided by the Java platform. Most of the classes discussed in this chapter are members of the java.lang (in the API reference documentation) package. All classes in the java.lang package are available to your programs automatically; there is no need for you to explicitly make them available them with an import statement.

Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail Search
Feedback Form

Copyright 1995-2005 Sun Microsystems, Inc. All rights reserved.