Java Cookbook, Second Edition

    Introduction

    Section 9.1.  Printing Objects: Formatting with toString( )

    Section 9.2.  Overriding the Equals Method

    Section 9.3.  Overriding the hashCode Method

    Section 9.4.  The Clone Method

    Section 9.5.  The Finalize Method

    Section 9.6.  Using Inner Classes

    Section 9.7.  Providing Callbacks via Interfaces

    Section 9.8.  Polymorphism/Abstract Methods

    Section 9.9.  Passing Values

    Section 9.10.  Enforcing the Singleton Pattern

    Section 9.11.  Roll Your Own Exceptions

    Section 9.12.  Program: Plotter

Категории