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

Interfaces and Packages - 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: Interfaces and Packages


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 describes two Java programming language features that help you to manage relationships between classes that might not otherwise be related by the class hierarchy. First, you will learn how to write and use an interface — a protocol of communication between objects. Second, you will learn how to bundle classes and interfaces into packages.

Creating and Using Interfaces (in the Learning the Java Language trail)

You saw an example of implementing an interface in the previous chapter. You can read more about interfaces — what they are for, why you might need to write an interface, and all about how to write one — in this section.

Creating and Using Packages (in the Learning the Java Language trail)

This section describes how to bundle your classes into packages and how to use classes that are in packages.

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

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