New and updated features of this title Approximately 600 integrated generative AI (genAI) prompt exercises: Most sections end with genAI prompt exercises (approximately 450) where students interact with genAIs using prompt engineering. In addition, many chapters include end-of-chapter genAI prompt exercises (approximately 150). The latest Java language features, library features and programming idioms are covered. New code examples and explanations will be provided on the authors' blog and webpage to keep the content up to date. Streamlined contemporary treatment of object-oriented programming includes record classes, sealed classes and interfaces, and a new case study on programming to an interface, not an implementation, focusing on composition and dependency injection. Approximately 400 Checkpoint exercises and answers: Most sections in the core computer science Chapters 1 - 10 end with Checkpoint exercises for self-study, with each immediately followed by its answer. Students will read about a new concept, study and execute the corresponding code examples, then test their understanding with integrated fill-in-the-blank, true/false, discussion and code-based Checkpoint exercises and answers. Objects-Natural case studies: Object technology's basic concepts and terminology are introduced in Chapter 1.
Objects-natural case studies have been added on class String (Chapter 2), class BigInteger for supersized integers (Chapter 3), class BigDecimal for the precise monetary calculations required in business applications (Chapter 4), the Date/Time API (Chapter 5), class ArrayList (Chapter 6) for dynamically resizable arrays, regular expressions for locating patterns in text (Chapter 7), secret-key AES cryptography (Chapter 7) and public-key RSA cryptography (Chapter 11). Throughout the rest of the book, many other case studies use objects of Java API and open-source library classes extensively. Chapter 19, Building API-Based Java Generative AI Applications, demonstrates programmatically interacting with OpenAI's APIs for text summarization, sentiment analysis, describing images for accessibility, translating text among languages, generating Java code, named-entity recognition, transcribing speech to text, synthesizing speech from text, creating closed captions for video, image generation and much more in the chapter's 94 exercises.