站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Tutorial 5.0 英文版

Object Basics and Simple Data Objects - Java Tutorial 5.0 英文版

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. If you notice any errors or omissions (or something you really like), please tell us.
This chapter begins with a general discussion about the life cycle of objects. The information presented applies to objects of a variety of 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.

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.