Hardcore Java
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 compl...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol, California :
O'Reilly
2004.
|
Edición: | First edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627184206719 |
Tabla de Contenidos:
- Hardcore Java; Typographical Conventions; Code Samples; Categories of Examples; Demonstrators; Executables; Tools; IDE; Out-of-IDE Building; Logging; Jakarta Commons; Using Code Examples; Comments and Questions; Acknowledgments; 1. Java in Review; 1.1.2. Everything Is a Class and Object Is God; 1.1.3. RTTI; 1.2. Syntax Issues; 1.2.2. Ternary Expressions; 1.2.3. Leveraging for Loops; 1.2.3.2. Collection iteration with for; 1.2.4. Abrupt Flow Control; 1.2.4.2. continue; 1.2.4.3. Labels; 1.2.5. assert; 1.2.5.2. To assert or not to assert; 1.2.5.3. Assertions and deployment
- 1.2.6. Chaining Constructors1.2.7. Initialization; 1.3. Access Issues; 1.3.2. Friends Allow Unrestricted Access; 1.4. Common Mistakes; 1.4.2. System.exit( ); 1.4.3. Default Execution; 2. The Final Story; 2.1.2. Excessive Constants; 2.2. Final Variables; 2.2.2. Deferred Initialization; 2.3. Final Parameters; 2.4. Final Collections; 2.5. Instance-Scoped Variables; 2.6. Final Classes; 2.7. Final Methods; 2.8. Conditional Compilation; 2.9. Using final as a Coding Standard; 3. Immutable Types; 3.1.2. Cracked Immutables; 3.1.3. False Immutable Types; 3.2. Immutable Problems
- 3.2.2. Buffering Bad Performance3.3. Immutable or Not; 4. Collections; 4.1.2. Collection Types; 4.1.2.2. Collections; 4.2. Implementations; 4.2.1.2. Comparing objects; 4.2.2. Big O Notation; 4.2.3. Lists; 4.2.3.2. java.util.ArrayList; 4.2.3.3. java.util.LinkedList; 4.2.4. Maps and SortedMaps; 4.2.4.2. java.util.HashMap; 4.2.4.3. java.util.LinkedHashMap; 4.2.4.4. java.util.IdentityHashMap; 4.2.4.5. java.util.WeakHashMap; 4.2.4.6. java.util.TreeMap; 4.2.5. Sets and SortedSets; 4.2.5.2. java.util.LinkedSet; 4.2.5.3. java.util.TreeSet; 4.3. Choosing a Collection Type; 4.4. Iterating Collections
- 4.4.1.2. java.util.Iterator4.4.1.3. java.util.ListIterator; 4.4.2. Fail-Fast Iterators; 4.5. Collection Gotchas; 4.5.2. Failure to Override hashCode( ); 4.5.3. Lack of Type Safety; 4.5.4. Collecting Problems; 5. Exceptional Code; 5.1.2. The RuntimeException Subclasses; 5.1.2.2. Ignoring exceptions; 5.1.3. Exception or RuntimeException; 5.2. When to Use Exceptions; 5.2.2. Too Many Exceptions; 5.3. Finally for Closure; 5.4. Exceptional Traps; 6. Nested Classes; 6.2. Limited-Scope Inner Classes; 6.2.2. Problems with Limited-Scope Inner Classes; 6.3. Static Nested Classes
- 6.4. Double Nested Classes6.5. Nested Classes in Interfaces?; 6.6. Nested Interfaces; 6.6.2. Nested Interfaces in Interfaces; 6.7. Nested Class Rules; 7. All About Constants; 7.1.1.2. Improving internationalization performance; 7.2. Bit Fields; 7.2.2. Comparing Bit Fields; 7.2.3. Problems with Bit Fields; 7.2.3.2. Limited expandability; 7.2.3.3. Improper encapsulation; 7.3. Option Constants; 7.4. Constant Objects; 7.4.2. Indexing Constant Objects; 7.4.3. Serialized Constant Objects; 7.4.4. Accounting for Multiple Constant Object Types; 7.5. Constant Encapsulation; 8. Data Modeling
- 8.1.2. Getting Approval of Requirements