The top-selling beginning Java book is now fully updated!
As an unstoppably platform-independent, object-oriented programming language, Java is used for developing web and mobile applications. In this up-to-date bestselling book, veteran author Barry Burd shows you how to create basic Java objects and clearly explains when you should simply reuse existing code.
- Explores how the new version of Java offers more robust functionality and new features such as closures to keep Java competitive with more syntax-friendly languages like Python and Ruby
- Covers object-oriented programming basics with Java, code reuse, the essentials of creating a Java program using the new JDK 7, creating basic Java objects, and new Eclipse features
- Features a companion website that offers all code from the book and bonus chapters
Java For Dummies, 6th Edition gets you started with creating Java applications quickly and easily.
Table of Contents:
Introduction 1 Part I: Getting Started with Java 7
Chapter 1: All about Java 9
Chapter 2: All about Software 21
Chapter 3: Using the Basic Building Blocks 37
Part II: Writing Your Own Java Programs 59
Chapter 4: Making the Most of Variables and Their Values 61
Chapter 5: Controlling Program Flow with Decision-Making Statements 91
Chapter 6: Controlling Program Flow with Loops 121
Part III: Working with the Big Picture: Object-Oriented Programming 137
Chapter 7: Thinking in Terms of Classes and Objects 139
Chapter 8: Saving T ime and Money: Reusing Existing Code 165
Chapter 9: Constructing New Objects 193
Part IV: Savvy Java Techniques 215
Chapter 10: Putting Variables and Methods Where They Belong 217
Chapter 11: Using Arrays to Juggle Values 245
Chapter 12: Using Collections and Streams (When Arrays Aren’t Good Enough) 271
Chapter 13: Looking Good When Things Take Unexpected Turns 299
Chapter 14: Sharing Names among the Parts of a Java Program 327
Chapter 15: Responding to Keystrokes and Mouse Clicks 349
Chapter 16: Writing Java Applets 367
Chapter 17: Using Java Database Connectivity 377
Part V: The Part of Tens 385
Chapter 18: Ten Ways to Avoid Mistakes 387
Chapter 19: Ten Websites for Java 393
Index 395