Core Java for the Impatient
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > Core Java for the Impatient
Core Java for the Impatient

Core Java for the Impatient

|
     0     
5
4
3
2
1




Out of Stock


Notify me when this book is in stock
About the Book

An Essential Guide to the Core Language and Libraries--Updated for Java 21 Modern Java introduces major enhancements that impact the core language and APIs at the heart of the Java platform. Many old Java idioms are no longer needed, and new features and programming paradigms can make you far more effective. However, navigating these changes can be challenging. Core Java for the Impatient, Fourth Edition, is a complete guide that reflects all changes through Java SE 21, Oracle's latest Long-Term Support (LTS) release. Written by Cay S. Horstmann--author of the classic two-volume Core Java--this concise tutorial offers a faster, easier pathway for learning modern Java. Horstmann covers everything working developers need to know, including the powerful concepts of lambda expressions and streams, modern constructs such as records and sealed classes, and sophisticated concurrent programming techniques. Given the size and scope of Java 21, there's plenty to cover. As in previous editions, everything is presented in small chunks organized for quick access and easy understanding, with plenty of practical insights and sample code to help you quickly apply all that's new. Test code as you create it with JShell Improve your object-oriented design with records and sealed classes Effectively use text blocks, switch expressions, and pattern matching Understand functional programming with lambda expressions Streamline and optimize data management with the Streams API Use structured techniques, threadsafe data structures, and virtual threads for effective concurrent programming Work with the modularized Java API and third-party modules Take advantage of API improvements for working with collections, input/output, regular expressions, and processes Whether you're an experienced developer just getting started with modern Java or have been programming with Java for years, this guide will help you write more robust, efficient, and secure Java code. Core Java for the Impatient provides accessible coverage of Java features that will enable readers to Master foundational techniques, idioms, and best practices for writing superior Java code Leverage the power of input/output Improve performance and efficiency Fully utilize multicore processors with Java's improved concurrency Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.

Table of Contents:
Preface xv Acknowledgments xvii Chapter 1: Fundamental Programming Structures 1 1.1 Our First Program 1 1.2 Primitive Types 12 1.3 Variables 15 1.4 Arithmetic Operations 18 1.5 Strings 25 1.6 Input and Output 36 1.7 Control Flow 40 1.8 Arrays and Array Lists 48 1.9 Functional Decomposition 58 1.10 Exercises 60 Chapter 2: Object-Oriented Programming 63 2.1 Working with Objects 63 2.2 Implementing Classes 68 2.3 Object Construction 73 2.4 Records 78 2.5 Static Variables and Methods 81 2.6 Packages 85 2.7 Nested Classes 92 2.8 Documentation Comments 97 2.9 Exercises 102 Chapter 3: Interfaces and Lambda Expressions 105 3.1 Interfaces 106 3.2 Static, Default, and Private Methods 113 3.3 Examples of Interfaces 117 3.4 Lambda Expressions 121 3.5 Method and Constructor References 124 3.6 Processing Lambda Expressions 126 3.7 Lambda Expressions and Variable Scope 131 3.8 Higher-Order Functions 135 3.9 Local and Anonymous Classes 137 3.10 Exercises 139 Chapter 4: Inheritance and Reflection 141 4.1 Extending a Class 142 4.2 Inheritance Hierarchies 148 4.3 Object: The Cosmic Superclass 155 4.4 Enumerations 164 4.5 Pattern Matching 168 4.6 Runtime Type Information and Resources 174 4.7 Reflection 183 4.8 Exercises 192 Chapter 5: Exceptions, Assertions, and Logging 195 5.1 Exception Handling 195 5.2 Assertions 208 5.3 Logging 210 5.4 Exercises 219 Chapter 6: Generic Programming 221 6.1 Generic Classes 222 6.2 Generic Methods 222 6.3 Type Bounds 223 6.4 Type Variance and Wildcards 224 6.5 Generics in the Java Virtual Machine 230 6.6 Restrictions on Generics 233 6.7 Reflection and Generics 240 6.8 Exercises 243 Chapter 7: Collections 247 7.1 An Overview of the Collections Framework 247 7.2 Iterators 253 7.3 Sets 254 7.4 Maps 256 7.5 Other Collections 262 7.6 Views 269 7.7 Exercises 271 Chapter 8: Streams 275 8.1 From Iterating to Stream Operations 275 8.2 Stream Creation 277 8.3 The filter, map, and flatMap Methods 280 8.4 Extracting Substreams and Combining Streams 282 8.5 Other Stream Transformations 283 8.6 Simple Reductions 284 8.7 The Optional Type 285 8.8 Collecting Results 290 8.9 Collecting into Maps 291 8.10 Grouping and Partitioning 293 8.11 Downstream Collectors 294 8.12 Reduction Operations 296 8.13 Primitive Type Streams 298 8.14 Parallel Streams 299 8.15 Exercises 302 Chapter 9: Processing Input and Output 305 9.1 Input/Output Streams, Readers, and Writers 305 9.2 Paths, Files, and Directories 317 9.3 HTTP Connections 325 9.4 Regular Expressions 328 9.5 Serialization 340 9.6 Exercises 350 Chapter 10: Concurrent Programming 353 10.1 Concurrent Tasks 354 10.2 Thread Safety 361 10.3 Threadsafe Data Structures 367 10.4 Parallel Algorithms 371 10.5 Asynchronous Computations 373 10.6 Atomic Counters and Accumulators 380 10.7 Locks and Conditions 383 10.8 Threads 388 10.9 Processes 392 10.10 Exercises 397 Chapter 11: Annotations 403 11.1 Using Annotations 404 11.2 Defining Annotations 409 11.3 Annotations in the Java API 412 11.4 Processing Annotations at Runtime 416 11.5 Source-Level Annotation Processing 419 11.6 Exercises 423 Chapter 12: The Java Platform Module System 425 12.1 The Module Concept 426 12.2 Naming Modules 427 12.3 The Modular "Hello, World!" Program 428 12.4 Requiring Modules 429 12.5 Exporting Packages 431 12.6 Modules and Reflective Access 435 12.7 Modular JARs 438 12.8 Automatic Modules 439 12.9 The Unnamed Module 441 12.10 Command-Line Flags for Migration 441 12.11 Transitive and Static Requirements 443 12.12 Qualified Exporting and Opening 444 12.13 Service Loading 445 12.14 Tools for Working with Modules 446 12.15 Exercises 449 Index 451


Best Sellers


Product Details
  • ISBN-13: 9780135404638
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • ISBN-10: 0135404630
  • Publisher Date: 22 Nov 2024
  • Binding: Digital download


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Core Java for the Impatient
Pearson Education (US) -
Core Java for the Impatient
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Core Java for the Impatient

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!