rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780201360653

Java in Practice: Design Styles and Idioms for Effective Java

by
  • ISBN13:

    9780201360653

  • ISBN10:

    0201360659

  • Format: Hardcover
  • Copyright: 1999-01-01
  • Publisher: Pearson P T R
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99

Summary

Providing a "how to" approach for hard-core programmers, this title helps Java developers by presenting common pattern, idioms and styles for solving design and programming problems.

Table of Contents

Introduction ix(4)
Acknowledgments xiii
1 Encapsulation
1(12)
Encapsulation in software
2(3)
Extending encapsulated systems
5(3)
Packages
8(1)
Inner classes
9(4)
2 Inheritance
13(18)
Inheritance for reuse
14(3)
Generalization
17(3)
Delegation
20(2)
Implicit inheritance
22(2)
Abstraction
24(1)
Interfaces
24(2)
Abstract classes
26(2)
Final classes
28(3)
3 Polymorphism
31(14)
What is polymorphism?
31(3)
Applying polymorphism
34(4)
Multiple levels of polymorphism
38(5)
Section summary
43(2)
4 Type safety and constants
45(18)
Understanding constants
45(7)
Typesafe constants
48(4)
Immutable objects
52(2)
Implementing a read-only interface
54(2)
Cloning
56(4)
Cloneable ReadOnly Object
60(3)
5 Exceptions
63(22)
Classical error handling
64(1)
Java's exceptions
65(1)
Defining exceptions
66(2)
Handling exceptions
68(7)
Single Entry Single Exit idiom
74(1)
Finally
75(2)
Using exceptions in constructors
77(1)
Encapsulating explicit Java and third-party library exceptions
78(1)
Incorrect usage of Java's exceptions
78(1)
Delegation based exception handling
79(6)
6 Using callbacks
85(12)
Polling in detail
86(1)
Participants in callbacks
87(1)
Implementing callbacks
88(2)
Multicast callbacks
90(4)
Handling excepetions with callbacks
94(3)
7 Loading classes and creating objects
97(18)
Loading classes
98(2)
Creating objects
100(4)
Using dynamic class loading
104(3)
Using objects and classes
107(1)
Reachability
108(1)
Objects removal
108(1)
Finalize
109(3)
Class unloading
112(3)
8 Creational idioms
115(22)
Object factory
115(1)
Factory method
116(4)
Abstract Factory
120(9)
Language Translator implementing Abstract Factory
120(9)
Singleton
129(3)
Singleton adapter
132(3)
"Virtual" Constructor idiom
135(2)
9 Balancing performance and resource usage
137(18)
Lazy instantiation
138(5)
Lazy instantiation of objects
138(5)
Eager instantiation
143(5)
Lazy evaluation
148(3)
Eager evaluation
151(4)
10 Collections
155(14)
A standard collection class
155(2)
Homogenous collections
157(12)
Typesafe collections
157(4)
Runtime typed collections
161(8)
11 Iterators
169(16)
The power of iterators
169(4)
Types of iterators
173(9)
Uni-directional iterators
173(2)
Bi-directional iterators
175(2)
Other types of iterator
177(5)
Multi-threading
182(3)
Appendix A Diagrams and coding conventions 185(10)
Appendix B Summary of rules, design principles, and tips 195(4)
Glossary 199(4)
References 203(2)
Index 205

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program