CARVIEW |
Hardcore Java
- By
- Robert Simmons Jr
- Publisher:
- O'Reilly Media
- Released:
- March 2004
- Pages:
- 352
Hardcore Java takes this language and breaks it apart, piece by piece, revealing the important secrets and tricks that will take you from a junior-level programmer to a seasoned and expert developer. You'll fly through the fundamentals and quickly find yourself learning about advanced memory management techniques, optimization and bytecode-level enhancements, and the techniques required to build lightning-fast GUIs. Throughout the book, you'll also master the art of writing and maintaining bulletproof and error-proof code, all while grasping the intricacies of the Java language.
Java has quickly become one of the most important languages in programming, particularly for professional and enterprise-level projects. From its infancy as a language primarily used for web applets to its maturity through servlets, Enterprise JavaBeans, and database access, Java has become a complex and robust tool for today's developer.
Hardcore Java takes this language and breaks it apart, piece by piece, revealing the important secrets and tricks that will take you from a junior-level programmer to a seasoned and expert developer. You'll fly through the fundamentals and quickly find yourself learning about advanced memory management techniques, optimization and bytecode-level enhancements, and the techniques required to build lightning-fast GUIs. Throughout the book, you'll also master the art of writing and maintaining bulletproof and error-proof code, all while grasping the intricacies of the Java language.
Hardcore Java covers:
- Use of the final keyword to optimize and protect your Java classes.
- Complete and thorough coverage of all types of nested classes, including how to optimize anonymous and inner classes.
- Detailed discussion of immutable objects, including unique tips on when to use them (and when not to).
- Elimination of bugs through exception-handling management.
- In-depth studies of constants, including their impact on the Java memory model.
- The most thorough discussion of reflection in print, moving far beyond other books' "Hello World" coverage.
- Construction and use of dynamic proxies, in both Java Standard and Enterprise editions.
- Expansive coverage of weak references, including usage patterns and their role in garbage collection and memory management.
-
Chapter 1 Java in Review
-
Core Concepts
-
Syntax Issues
-
Access Issues
-
Common Mistakes
-
-
Chapter 2 The Final Story
-
Final Constants
-
Final Variables
-
Final Parameters
-
Final Collections
-
Instance-Scoped Variables
-
Final Classes
-
Final Methods
-
Conditional Compilation
-
Using final as a Coding Standard
-
-
Chapter 3 Immutable Types
-
Fundamentals
-
Immutable Problems
-
Immutable or Not
-
-
Chapter 4 Collections
-
Collection Concepts
-
Implementations
-
Choosing a Collection Type
-
Iterating Collections
-
Collection Gotchas
-
-
Chapter 5 Exceptional Code
-
Two Types of Exceptions
-
When to Use Exceptions
-
Finally for Closure
-
Exceptional Traps
-
-
Chapter 6 Nested Classes
-
Inner Classes
-
Limited-Scope Inner Classes
-
Static Nested Classes
-
Double Nested Classes
-
Nested Classes in Interfaces?
-
Nested Interfaces
-
Nested Class Rules
-
-
Chapter 7 All About Constants
-
Substitution Constants
-
Bit Fields
-
Option Constants
-
Constant Objects
-
Constant Encapsulation
-
-
Chapter 8 Data Modeling
-
The Requirements Document
-
Natural Language Modeling
-
Aspects of Well-Designed Data Models
-
Reusable Data Constraints
-
Persistence
-
-
Chapter 9 Practical Reflection
-
The Basics
-
Reflection and Greater Reflection
-
Applying Reflection to MutableObject
-
Performance of Reflection
-
Reflection + JUnit = Stable Code
-
-
Chapter 10 Proxies
-
What Is a Proxy?
-
Two Kinds of Proxies
-
Proxy Gotchas
-
-
Chapter 11 References in Four Flavors
-
The Problem
-
Java Reference Concepts
-
The Java Reference Classes
-
Practical Applications
-
A Weak Listener
-
When to Use References
-
-
Chapter 12 Tiger: JDK 1.5
-
New Language Features
-
Generics
-
Other Improvements in Tiger
-
-
Colophon

- Title:
- Hardcore Java
- By:
- Robert Simmons Jr
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- March 2004
- Ebook Release:
- February 2009
- Pages:
- 352
- Print ISBN:
- 978-0-596-00568-9
- | ISBN 10:
- 0-596-00568-7
- Ebook ISBN:
- 978-0-596-10432-0
- | ISBN 10:
- 0-596-10432-4
-
Robert Simmons Jr
Robert Simmons, Jr. started programming when floppy disks were really floppy and 64 kilobytes of RAM was considered state of the art. From his early days of programming BASIC and Logo on an Apple IIe, he advanced through Pascal and C to arrive in the object oriented realm of C++. When Java first came out, he knew that the infant language would become a serious player amongst corporations; Robert learned Java and began using it as his primary language for programming in 1997. Although Robert is American, he lives and works as a Senior Software Architect in Germany.
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Hardcore Java is a lion. The lion (Panthera leo) is the largest of the African carnivores. Males, distinguished by their tawny manes, can weigh up to 500 pounds; the smaller, maneless females can weigh up to 300 pounds. Both sexes are powerfully built. Their muscular bodies can take down such large prey as buffalo, giraffe, and young elephants, but they usually hunt medium- to large-sized herd animals, such as antelopes and gazelles.
The regal designation "king of the jungle" is a misnomer. Lions tend to live on the open plains throughout sub-Saharan Africa. Nor are they the ferocious, man-eating beasts portrayed in old stories and movies. Though lions have been known to attack humans when provoked, their lifestyle is surprisingly laid-back. They love to lie around and snooze in the sun, and are active for only two to four hours a day. They hunt in groups, usually at night. A pride consists of 12 females that are closely related and up to 6 males.
While their day-to-day life may be easygoing, the mating rituals of lions are often savage and deadly. Males mate with females of their pride. The toughest males can take over a pride by expelling other males in bloody, often fatal, fights. These males are then expelled by younger, stronger males within 1 to 10 years. New males not only kill off their rivals, but they also kill the pride's cubs to ensure that the females will once again be ready to breed, thereby guaranteeing that their genes will be passed on.
The lion's most prominent trait, its bloodcurdling roar, is used by both males and females during mating and to keep other predators at a distance. A roar will often begin with a low rumble and slowly build to a deafening crescendo before subsiding. Matt Hutchinson was the production editor and copyeditor for Hardcore Java. Mary Brady proofread the book. Sarah Sherman, Mary Brady, and Claire Cloutier provided quality control. John Bickelhaupt wrote the index.
Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
Melanie Wang designed the interior layout, based on a series design by David Futato. This book was converted by Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XMLtechnologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Matt Hutchinson and Genevieve d'Entremont.
![]() ©2010, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly
Academic Solutions Authors Contacts Customer Service Jobs Newsletters O'Reilly Labs Press Room Privacy Policy RSS Feeds Terms of Service User Groups Writing for O'Reilly |
Content Archive Business Technology Computer Technology Microsoft Mobile Network Operating System Digital Photography Programming Software Web Web Design |
More O'Reilly Sites
O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone makezine.com craftzine.com hackszine.com perl.com xml.com Partner Sites InsideRIA java.net O'Reilly Insights on Forbes.com |