
- Paul Deitel |
- Harvey M. Deitel |
Title overview
For courses in Java programming.
Teaches Java programming faster, broader, and more deeply
The Deitels’ groundbreaking How to Program series explores fundamentals, object-oriented concepts, and intermediate-level topics for further study. Java How to Program: An Objects-Natural Approach is a friendly, contemporary, code-intensive, case study-oriented introduction to one of the world’s most popular programming languages. It offers real-world examples, early classes and objects, and the authors’ signature live-code approach that teaches by presenting concepts in the context of complete working programs.
The 12th Edition introduces an objects-natural approach that begins with programming fundamentals in early chapters, before students develop their own custom classes; however, this approach then provides abundant practice using powerful existing classes, quickly creating objects of those classes (typically with 1 line of code) and telling them to “strut their stuff” with a minimal number of Java statements. Additionally, genAI is integrated throughout for its potential to profoundly enhance Java education, with guidance for students on leveraging these tools effectively while maintaining a cautious and critical mindset. Students will use gen AI to learn genAI, with a focus on prompt engineering, crafting and refining prompts to achieve optimal results.
Hallmark features of this title
- Syntax coloring for all the Java code reflects how most Java integrated development environments (IDEs) and code editors syntax color code.
- Fonts for emphasis highlight on-screen components in bold (e.g., the File menu) and Java program text in a fixed-width font (e.g., int x = 5;).
- Illustrations and figures include abundant tables, line drawings, UML diagrams, programs and program outputs.
- Heavy math is avoided, leaving it for upper-level courses. Optional mathematical exercises and projects are included for science and engineering courses.
- End-of-chapter exercises include simple recall of important terminology and concepts, focusing on code function (“what does this code do?”); errors (“what’s wrong with this code?”); writing individual statements and small portions of methods and classes; writing complete methods, classes and programs; major projects; generative AI exercises that dig deeper into a variety of topics.
- Student preparation for industry: The authors use the terminology from the latest Java specification document in preference to general programming terms; they also show Java as it’s intended to be used with a rich collection of application programming case studies, focusing on computer science, artificial intelligence, data science and many other fields.
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.
Key features
Features of Revel for the 12th Edition
- Assignable and automatically graded programing exercises, including end-of-section quizzes and end-of-chapter programming projects, enable students to experience the power of practice as they work through their coding assignments and receive immediate personalized feedback.
- Instructors can gauge student comprehension frequently, provide timely feedback, and address learning gaps along the way.
- Extensive VideosNotes: Co-author Paul Deitel discusses the material in the Before You Begin section, and methodically explains and provides additional insights on most of the programs in the book’s core computer science Chapters 1 - 10.
- Hundreds of glossary items are provided for the core computer science Chapters 1 - 10. These are also used in student learning tools to create flashcards and matching exercises.
- Automatically graded interactive programming and non-programming assessment exercises are included, along with instructor course-management tools such as a grade book.
Features of Pearson+ eTextbook for the 12th Edition
- Extensive VideosNotes: Co-author Paul Deitel discusses the material in the Before You Begin section, and methodically explains and provides additional insights on most of the programs in the book’s core computer science Chapters 1 - 10.
- Hundreds of glossary items are provided for the core computer science Chapters 1 - 10. These are also used in student learning tools to create flashcards and matching exercises.
Table of contents
Before You Begin
- Intro to Computers, the Internet, Java and Generative AI
- Intro to Java Programming
- Algorithm Development and Control Statements: Part 1
- Control Statements: Part 2
- Methods
- Arrays and ArrayLists
- Strings, NLP and Regex: Generative AI Foundations
- Real-World Modeling with Custom Classes
- Real-World Modeling with Inheritance, Polymorphism & Interfaces
- Exception Handling: A Deeper Look
- Files, I/O Streams, JSON Serialization & CSV Files
- Generic Collections
- Generic Classes and Methods: A Deeper Look
- Functional Programming with Lambdas & Streams
- JavaFX Graphical User Interfaces: Part 1
- JavaFX GUI: Part 2
- JavaFX Graphics and Multimedia
- Concurrency: Platform Threads to Virtual Threads
- Building API-Based Java Generative AI Applications
- Accessing Databases with JDBC and SQLite
- Java Platform Module System
- Computer Science Thinking: Recursion, Searching, Sorting, Big O
A: Introduction to JShell for Interactive Java
B: Formatted Output
C: Number Systems
Index
Author bios
About our authors
Paul J. Deitel, CEO and Chief Technical Officer of Deitel & Associates, Inc., is a graduate of MIT with over 44 years of experience in computing. He holds the Java Certified Programmer and Java Certified Developer designations and is an Oracle Java Champion. He is one of the world’s most experienced programming-languages trainers, having taught professional courses to software developers since 1992. His video courses on platforms like O’Reilly Online Learning have garnered millions of views, with his Java Fundamentals LiveLessons, Python Fundamentals LiveLessons, and C# Fundamentals LiveLessons each ranking #1 at various times among thousands of video products. He has delivered hundreds of programming courses to academic, industry, government and military clients of Deitel & Associates, Inc. internationally, including UCLA, SLB (formerly Schlumberger), IBM, Siemens, Sun Microsystems (now Oracle), Dell, Fidelity, NASA at the Kennedy Space Center, the National Severe Storm Laboratory, White Sands Missile Range, Rogue Wave Software, Boeing, Cisco, Puma, iRobot and many more. He and his co-author, Dr. Harvey M. Deitel, are among the world’s best-selling programming-language textbook/professional book/video/interactive multimedia authors.
Dr. Harvey M. Deitel, Chairman and Chief Strategy Officer of Deitel & Associates, Inc., has over 64 years of experience in computing. Dr. Deitel earned B.S. and M.S. degrees in Electrical Engineering from MIT and a Ph.D. in Mathematics from Boston University; he studied computing in each of these programs before they spun off Computer Science programs. He has extensive college teaching experience, including earning tenure and serving as the Chairman of the Computer Science Department at Boston College before founding Deitel & Associates in 1991 with his son, Paul. The Deitels’ publications have earned international recognition, with more than 100 translations published in Japanese, German, Russian, Spanish, French, Polish, Italian, Simplified Chinese, Traditional Chinese, Korean, Portuguese, Greek, Urdu and Turkish. Dr. Deitel has delivered hundreds of programming courses to academic, corporate, government and military clients.