Collections and Generics Collections The Collection Interface Collection Types The Map Interface Type Limitations Containers: Building a Better Mousetrap Can Containers Be Fixed? Enter Generics Talking About Types “There Is No Spoon” Erasure Raw Types Parameterized Type Relationships Why Isn’t a List a List? Casts Converting Between Collections and Arrays Iterator A Closer Look: The sort() Method Application: Trees on the Field Conclusion Chapter 8. Error Handling and Logging Exceptions Exceptions and Error Classes Exception Handling Bubbling Up Stack Traces Checked and Unchecked Exceptions Throwing Exceptions try Creep The finally Clause try with Resources Performance Issues Assertions Enabling and Disabling Assertions Using Assertions The Logging API Overview Logging Levels A Simple Example Logging Setup Properties The Logger Performance Real-World Exceptions Chapter 7. Objects in Java Classes Declaring and Instantiating Classes Accessing Fields and Methods Static Members Methods Local Variables Shadowing Static Methods Initializing Local Variables Argument Passing and References Wrappers for Primitive Types Method Overloading Object Creation Constructors Working with Overloaded Constructors Object Destruction Garbage Collection Packages Importing Classes Custom Packages Member Visibility and Access Compiling with Packages Advanced Class Design Subclassing and Inheritance Interfaces Inner Classes Anonymous Inner Classes Organizing Content and Planning for Failure Chapter 6. The Java Language Text Encoding Comments Javadoc Comments Variables and Constants Types Primitive Types Reference Types Inferring Types Passing References A Word About Strings Statements and Expressions Statements Expressions Arrays Array Types Array Creation and Initialization Using Arrays Anonymous Arrays Multidimensional Arrays Types and Classes and Arrays, Oh My! Chapter 5. Tools of the Trade JDK Environment The Java VM Running Java Applications System Properties The Classpath javap Modules The Java Compiler Trying Java JAR Files File Compression The jar Utility The pack200 Utility Building Up Chapter 4. A First Application Java Tools and Environment Installing the JDK Installing OpenJDK on Linux Installing OpenJDK on macOS Installing OpenJDK on Windows Configuring IntelliJ IDEA and Creating a Project Running the Project Grabbing the Learning Java Examples HelloJava Classes The main() Method Classes and Objects Variables and Class Types HelloComponent Inheritance The JComponent Class Relationships and Finger-Pointing Package and Imports The paintComponent() Method HelloJava2: The Sequel Instance Variables Constructors Events The repaint() Method Interfaces Goodbye and Hello Again Chapter 3. A Modern Language Enter Java Java’s Origins Growing Up A Virtual Machine Java Compared with Other Languages Safety of Design Simplify, Simplify, Simplify… Type Safety and Method Binding Incremental Development Dynamic Memory Management Error Handling Threads Scalability Safety of Implementation The Verifier Class Loaders Security Managers Application and User-Level Security A Java Road Map The Past: Java 1.0–Java 11 The Present: Java 14 The Future Availability Chapter 2. Table of contents : Cover Copyright Table of Contents Preface Who Should Read This Book New Developments New in This Edition (Java 11, 12, 13, 14) Using This Book Online Resources Conventions Used in This Book Using Code Examples O’Reilly Online Learning How to Contact Us Acknowledgments Chapter 1.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |