,

Core Java, Volume I

Fundamentals

Paperback Engels 2024 9780135328378
Verwachte levertijd ongeveer 9 werkdagen

Samenvatting

The Classic Guide to the Java Programming Language--Fully Updated through Java 21

Whatever version of Java you are using, Core Java, Volume I: Fundamentals, Thirteenth Edition, will help you achieve a deep and practical understanding of the language and APIs. With hundreds of realistic examples, Java Champion Cay S. Horstmann demonstrates the most powerful and effective ways to get the job done.

Written for experienced programmers looking for in-depth coverage of the Java language and platform, this revised and updated edition continues to be the first choice for serious programmers. The carefully crafted sample programs demonstrate almost every language and library feature, as well as the newest capabilities introduced in Java 21. The examples are purposefully simple to focus on the major points, but, for the most part, they aren't fake and they don't cut corners. They should make good starting points for your own code.

This first of two volumes offers a detailed treatment of fundamental Java programming topics, including object-oriented programming, reflection and proxies, interfaces and inner classes, exception handling, generics, collections, lambda expressions, concurrency, annotations, and the Java Platform Module System. Master foundational techniques, idioms, and best practices for writing superior Java code Leverage the power of interfaces, lambda expressions, and inner classes Take advantage of sealed class hierarchies and pattern matching for processing structured data Harden programs through effective exception handling and debugging Write safer, more reusable code with generic programming Improve performance and efficiency with Java's standard collections Explore simple programs with JShell and assemble complex programs with archives and modules Fully utilize multicore processors with Java's powerful concurrency model

See Core Java, Volume II: Advanced Features, Thirteenth Edition, for coverage of Java 21 enterprise features, including detailed discussions of networking, security, internationalization, and advanced UI programming.

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.

Specificaties

ISBN13:9780135328378
Taal:Engels
Bindwijze:Paperback

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

<p>Preface xiii<br>Acknowledgments xix</p> <p><strong>Chapter 1: An Introduction to Java 1</strong><br>1.1 Java as a Programming Platform 1<br>1.2 The Java "White Paper" Buzzwords 2<br>1.3 Java Applets and the Internet 7<br>1.4 A Short History of Java 8<br>1.5 Common Misconceptions about Java 12</p> <p><strong>Chapter 2: The Java Programming Environment 15</strong><br>2.1 Installing the Java Development Kit 15<br>2.2 Using the Command-Line Tools 19<br>2.3 Using an Integrated Development Environment 24<br>2.4 JShell 25</p> <p><strong>Chapter 3: Fundamental Programming Structures in Java 31</strong><br>3.1 A Simple Java Program 31<br>3.2 Comments 35<br>3.3 Data Types 36<br>3.4 Variables and Constants 43<br>3.5 Operators 48<br>3.6 Strings 59<br>3.7 Input and Output 76<br>3.8 Control Flow 85<br>3.9 Big Numbers 107<br>3.10 Arrays 110</p> <p><strong>Chapter 4: Objects and Classes 127</strong><br>4.1 Introduction to Object-Oriented Programming 127<br>4.2 Using Predefined Classes 132<br>4.3 Defining Your Own Classes 142<br>4.4 Static Fields and Methods 157<br>4.5 Method Parameters 164<br>4.6 Object Construction 171<br>4.7 Records 182<br>4.8 Packages 188<br>4.9 JAR Files 200<br>4.10 Documentation Comments 206<br>4.11 Class Design Hints 214</p> <p><strong>Chapter 5: Inheritance 217</strong><br>5.1 Classes, Superclasses, and Subclasses 217<br>5.2 Object: The Cosmic Superclass 240<br>5.3 Generic Array Lists 257<br>5.4 Object Wrappers and Autoboxing 265<br>5.5 Methods with a Variable Number of Arguments 270<br>5.6 Abstract Classes 271<br>5.7 Enumeration Classes 277<br>5.8 Sealed Classes 282<br>5.9 Pattern Matching 288<br>5.10 Reflection 296<br>5.11 Design Hints for Inheritance 324</p> <p><strong>Chapter 6: Interfaces, Lambda Expressions, and Inner Classes 327</strong><br>6.1 Interfaces 327<br>6.2 Lambda Expressions 354<br>6.3 Inner Classes 375<br>6.4 Service Loaders 393<br>6.5 Proxies 395</p> <p><strong>Chapter 7: Exceptions, Assertions, and Logging 403</strong><br>7.1 Dealing with Errors 403<br>7.2 Catching Exceptions 412<br>7.3 Tips for Using Exceptions 427<br>7.4 Using Assertions 431<br>7.5 Logging 436<br>7.6 Debugging Tips 452</p> <p><strong>Chapter 8: Generic Programming 459</strong><br>8.1 Why Generic Programming? 459<br>8.2 Defining a Simple Generic Class 462<br>8.3 Generic Methods 464<br>8.4 Bounds for Type Variables 465<br>8.5 Generic Code and the Virtual Machine 468<br>8.6 Inheritance Rules for Generic Types 474<br>8.7 Wildcard Types 477<br>8.8 Restrictions and Limitations 485<br>8.9 Reflection and Generics 498</p> <p><strong>Chapter 9: Collections 511</strong><br>9.1 The Java Collections Framework 511<br>9.2 Interfaces in the Collections Framework 521<br>9.3 Concrete Collections 525<br>9.4 Maps 548<br>9.5 Copies and Views 562<br>9.6 Algorithms 574<br>9.7 Legacy Collections 586</p> <p><strong>Chapter 10: Concurrency 599</strong><br>10.1 Running Threads 599<br>10.2 Thread States 605<br>10.3 Thread Properties 608<br>10.4 Coordinating Tasks 618<br>10.5 Synchronization 635<br>10.6 Thread-Safe Collections 667<br>10.7 Asynchronous Computations 685<br>10.8 Processes 702</p> <p><strong>Chapter 11: Annotations 711</strong><br>11.1 Using Annotations 711<br>11.2 Defining Annotations 717<br>11.3 Annotations in the Java API 720<br>11.4 Processing Annotations at Runtime 725<br>11.5 Source-Level Annotation Processing 729<br>11.6 Bytecode Engineering 736</p> <p><strong>Chapter 12: The Java Platform Module System 747</strong><br>12.1 The Module Concept 747<br>12.2 Naming Modules 748<br>12.3 The Modular "Hello, World!" Program 749<br>12.4 Requiring Modules 751<br>12.5 Exporting Packages 753<br>12.6 Modular JARs 757<br>12.7 Modules and Reflective Access 759<br>12.8 Automatic Modules 762<br>12.9 The Unnamed Module 764<br>12.10 Command-Line Flags for Migration 765<br>12.11 Transitive and Static Requirements 766<br>12.12 Qualified Exporting and Opening 768<br>12.13 Service Loading 769<br>12.14 Tools for Working with Modules 772</p> <p><strong>Appendix 775</strong></p> <p>Index 781</p>

Managementboek Top 100

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        Core Java, Volume I