Synopses & Reviews
Learn to:- Combine several smaller programs to create a bigger program
- Use new features and tools in Java 8
- Create basic Java objects and reuse code
- Handle exceptions and events
Jump into Java! The bestselling Java book for beginners is now fully updated for Java 8
Java is everywhere, runs on almost any computer, and is the engine that drives the coolest applications. If you’ve always wanted to learn Java, Java For Dummies is your ticket to Java success! Featuring updates on Java 8, this hands-on guide is written in an easy-to-read manner and is the perfect resource to get you running with Java in a jiffy!
- The Java scoop — get an overview of Java, featuring new tools and enhancements in Java 8, including new libraries, parallel frameworks, and more
- Building blocks — find out how to work with Java classes and methods
- Get loopy — understand the value of variables and learn to control program flow with loops or decision-making statements
- Stay classy — explore classes and objects, constructors, and subclasses, and find out how to reuse code
- A click ahead — jump into variables, use arrays and collections, and create programs that respond to mouse clicks
Visit the companion website at www.dummies.com/go/javafordummies6e for all the code from the book and additional material
Open the book and find:
- Definitions of terms associated with Java
- Java syntax and an object-oriented programming overview
- How to save time and effort by reusing code
- All about if, for, switch, and while statements
- The enhanced multimedia capabilities of Java 8
- Updates for Android and other new tools
- How to write Java applets
- Tips to avoid common mistakes
Synopsis
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.
About the Author
Barry Burd, PhD, is a Computer Science professor at Drew University where he has been named to Drew’s “List of Teachers Ranked as Excellent by Students” five times. Barry is the author of numerous For Dummies books and writes frequently for several online publications, including JavaBoutique.com.
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