Java For Dummies, 8th Edition

Book description

Learn to write practical, reusable code with the straightforward tutorials and tips in the newest edition of this For Dummies bestseller 

Do you speak Java? No, we’re not talking about your morning cup ‘o joe. We mean the world’s most popular programming language that runs on almost any computer! 

If you’re looking to get started—or up your game—with Java, then Java For Dummies is the guide you need. In this book, you’ll: 

  • Take control of your program flow 
  • Program with classes, objects, and methods
  • Use Java's functional programming features
  • Explore Java 17, the latest long-term support release 

This up-to-date handbook covers the latest developments in Java, including the new ‘switch’ statement syntax. So, if you’re ready to dive into one of the most practical (and coolest!) programming languages around, it’s time you picked up Java For Dummies. 

 

Table of contents

  1. Cover
  2. Title Page
  3. Copyright
  4. Introduction
    1. About This Book
    2. Foolish Assumptions
    3. Icons Used in This Book
    4. Beyond the Book
    5. Where to Go from Here
  5. Part 1: Getting Started with Java
    1. Chapter 1: All about Java
      1. What You Can Do with Java
      2. Why You Should Use Java
      3. Gaining Perspective: Where Java Fits In
      4. Object-Oriented Programming (OOP)
      5. What’s Next?
    2. Chapter 2: All about Software
      1. Get Ready for Java
      2. The Inside Scoop
      3. Developing Software
      4. Spoiler Alert!
    3. Chapter 3: Using the Basic Building Blocks
      1. Speaking the Java Language
      2. Checking Out Java Code for the First Time
      3. Understanding a Simple Java Program
      4. And Now, a Few Comments
  6. Part 2: Writing Your Own Java Programs
    1. Chapter 4: Making the Most of Variables and Their Values
      1. Varying a Variable
      2. Experimenting with JShell
      3. What Happened to All the Cool Visual Effects?
      4. The Atoms: Java's Primitive Types
      5. The Molecules and Compounds: Reference Types
      6. An Import Declaration
      7. Creating New Values by Applying Operators
    2. Chapter 5: Controlling Program Flow with Decision-Making Statements
      1. Making Decisions (Java if Statements)
      2. Using Blocks in JShell
      3. Forming Conditions with Comparisons and Logical Operators
      4. The Nesting Habits of if Statements
      5. Choosing among Many Alternatives
    3. Chapter 6: Controlling Program Flow with Loops
      1. Repeating Instructions Over and Over Again (Java while Statements)
      2. Count On Me
      3. You Can Always Get What You Want
  7. Part 3: Working with the Big Picture: Object-Oriented Programming
    1. Chapter 7: The Inside scOOP
      1. Defining a Class (What It Means to Be an Account)
      2. Defining a Method within a Class (Displaying an Account)
      3. Sending Values to and from Methods (Calculating Interest)
      4. Giving Your Numbers a Makeover
      5. Hide-and-Seek
      6. Barry's Own GUI Class
    2. Chapter 8: Saving Time and Money: Reusing Existing Code
      1. What It Means to Be an Employee
      2. Working with Disk Files (a Brief Detour)
      3. Defining Subclasses (What It Means to Be a Full-Time or Part-Time Employee)
      4. Using Subclasses
      5. Changing the Payments for Only Some of the Employees
    3. Chapter 9: Constructing New Objects
      1. Defining Constructors (What It Means to Be a Temperature)
      2. Doing Something about the Weather
      3. A Constructor That Does More
  8. Part 4: Smart Java Techniques
    1. Chapter 10: Putting Variables and Methods Where They Belong
      1. Defining a Class (What It Means to Be a Baseball Player)
      2. Making Static (Finding the Team Average)
      3. Experiments with Variables
      4. Passing Parameters
    2. Chapter 11: Using Arrays to Juggle Values
      1. Getting Your Ducks All in a Row
      2. Arrays of Objects
      3. How to Argue with Your Code
    3. Chapter 12: Using Collections and Streams (When Arrays Aren't Good Enough)
      1. Arrays Have Limitations
      2. Collection Classes to the Rescue
      3. Functional Programming
    4. Chapter 13: Looking Good When Things Take Unexpected Turns
      1. Garbage In
      2. The Buck Stops Here, Except When It Doesn't
      3. Try, Try Again!
    5. Chapter 14: Sharing Names among the Parts of a Java Program
      1. Access Modifiers
      2. Classes and Their Members
      3. Public and Private Access for Members
      4. Default Access for Members
      5. Protected Access for Members
      6. Access Modifiers for Java Classes
      7. From Classes Come Modules
    6. Chapter 15: Fancy Reference Types
      1. Java's Types
      2. The Java Interface
      3. Abstract Classes
      4. Relax! You're Not Seeing Double!
    7. Chapter 16: Java's Juggling Act
      1. Juggling Two or More Calls
      2. Some Events Aren't Button Clicks
      3. The Inner Sanctum
    8. Chapter 17: Using Java Database Connectivity
      1. Creating a Database and a Table
      2. Putting Data in the Table
      3. Retrieving Data
      4. Destroying Data
      5. One Step Beyond
  9. Part 5: The Part of Tens
    1. Chapter 18: Ten Packs of Java Websites
      1. This Book’s Website
      2. For Business Issues Related to This Book
      3. Download the Java Development Kit
      4. Your Grandparents' Java Download Site
      5. The Horse’s Mouth
      6. Join Java User Groups
      7. Find the Latest News about Java
      8. Find News, Reviews, and Sample Code
      9. Got a Technical Question about Anything?
      10. Become Involved in the Future of Java
    2. Chapter 19: Ten Bits of Advice for New Software Developers
      1. How Long Does It Take to Learn Java?
      2. Which of Your Books Should I Read?
      3. Are Books Other than Yours Good for Learning Java and Android Development?
      4. Which Computer Programming Language(s) Should I Learn?
      5. Which Skills Other than Computer Coding Should I Learn?
      6. How Should I Continue My Learning as a Software Developer?
      7. How Else Should I Continue My Learning as a Developer?
      8. How Can I Land a Job Developing Software?
      9. I Still Don’t Know What to Do with My Life
      10. If I Have Other Questions, How Can I Contact You?
  10. Index
  11. About the Author
  12. Connect with Dummies
  13. End User License Agreement

Product information

  • Title: Java For Dummies, 8th Edition
  • Author(s): Barry Burd
  • Release date: April 2022
  • Publisher(s): For Dummies
  • ISBN: 9781119861645