Java For Dummies (6th Edition)
معرفی کتاب «Java For Dummies (6th Edition)» نوشتهٔ Barry A. Burd، منتشرشده توسط نشر Wiley در سال 2014. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Java For Dummies (6th Edition)» در دستهٔ بدون دستهبندی قرار دارد.
**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. Contents at a Glance 5 Table of Contents 7 Introduction 15 How to Use This Book 15 Conventions Used in This Book 15 What You Don’t Have to Read 16 Foolish Assumptions 17 How This Book Is Organized 18 Icons Used in This Book 19 Beyond the Book 20 Where to Go from Here 20 Part I: Getting Started with Java 21 Chapter 1: All about Java 23 What You Can Do with Java 24 Why You Should Use Java 25 Getting Perspective: Where Java Fits In 25 Object-Oriented Programming (OOP) 27 What’s Next? 34 Chapter 2: All about Software 35 Quick-Start Instructions 35 What You Install on Your Computer 37 Chapter 3: Using the Basic Building Blocks 51 Speaking the Java Language 51 Checking Out Java Code for the First Time 55 Understanding a Simple Java Program 56 And Now, a Few Comments 66 Part II: Writing Your Own Java Programs 73 Chapter 4: Making the Most of Variables and Their Values 75 Varying a Variable 75 Assignment Statements 77 Understanding the Types of Values That Variables May Have 78 Displaying Text 82 Numbers without Decimal Points 82 Combining Declarations and Initializing Variables 84 The Atoms: Java’s Primitive Types 85 The Molecules and Compounds: Reference Types 89 An Import Declaration 93 Creating New Values by Applying Operators 95 Chapter 5: Controlling Program Flow with Decision-Making Statements 105 Making Decisions (Java if Statements) 106 Forming Conditions with Comparisons and Logical Operators 115 Building a Nest 125 Choosing among Many Alternatives (Java switch Statements) 127 Chapter 6: Controlling Program Flow with Loops 135 Repeating Instructions Over and Over Again (Java while Statements) 136 Repeating a Certain Number of Times (Java for Statements) 139 Repeating Until You Get What You Want (Java do Statements) 143 Part III: Working with the Big Picture: Object-Oriented Programming 151 Chapter 7: Thinking in Terms of Classes and Objects 153 Defining a Class (What It Means to Be an Account) 153 Defining a Method within a Class (Displaying an Account) 160 Sending Values to and from Methods (Calculating Interest) 163 Making Numbers Look Good 170 Hiding Details with Accessor Methods 173 Chapter 8: Saving Time and Money: Reusing Existing Code 179 Defining a Class (What It Means to Be an Employee) 180 Working with Disk Files (A Brief Detour) 184 Defining Subclasses (What It Means to Be a Full-Time or Part-Time Employee) 193 Using Subclasses 198 Overriding Existing Methods (Changing the Payments for Some Employees) 202 Chapter 9: Constructing New Objects 207 Defining Constructors (What It Means to Be a Temperature) 208 More Subclasses (Doing Something about the Weather) 217 A Constructor That Does More 223 Part IV: Savvy Java Techniques 229 Chapter 10: Putting Variables and Methods Where They Belong 231 Defining a Class (What It Means to Be a Baseball Player) 231 Making Static (Finding the Team Average) 239 Experiments with Variables 246 Passing Parameters 252 Chapter 11: Using Arrays to Juggle Values 259 Getting Your Ducks All in a Row 259 Arrays of Objects 273 Command Line Arguments 279 Chapter 12: Using Collections and Streams (When Arrays Aren’t Good Enough) 285 Understanding the Limitations of Arrays 285 Collection Classes to the Rescue 286 New in Java 8: Functional Programming 294 Chapter 13: Looking Good When Things Take Unexpected Turns 313 Handling Exceptions 314 Handle an Exception or Pass the Buck 330 Finishing the Job with a finally Clause 336 A try Statement with Resources 338 Chapter 14: Sharing Names among the Parts of a Java Program 341 Access Modifiers 342 Classes, Access, and Multipart Programs 343 Sneaking Away from the Original Code 352 Protected Access 357 Access Modifiers for Java Classes 360 Chapter 15: Responding to Keystrokes and Mouse Clicks 363 Go On . . . Click That Button 363 Responding to Things Other Than Button Clicks 372 Creating Inner Classes 377 Chapter 16: Writing Java Applets 381 Applets 101 381 Making Things Move 384 Responding to Events in an Applet 388 Chapter 17: Using Java Database Connectivity 391 JDBC and Java DB 391 Creating Data 392 Retrieving Data 396 Part V: The Part of Tens 399 Chapter 18: Ten Ways to Avoid Mistakes 401 Putting Capital Letters Where They Belong 401 Breaking Out of a switch Statement 402 Comparing Values with a Double Equal Sign 402 Adding Components to a GUI 403 Adding Listeners to Handle Events 403 Defining the Required Constructors 403 Fixing Non-Static References 404 Staying within Bounds in an Array 404 Anticipating Null Pointers 404 Helping Java Find Its Files 405 Chapter 19: Ten Websites for Java 407 This Book’s Website 407 The Horse’s Mouth 407 Finding News, Reviews, and Sample Code 408 Looking for Java Jobs 408 Everyone’s Favorite Sites 408 Index 409 About the Author 429 Content: 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 Abstract: 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. Read more...
دانلود کتاب Java For Dummies (6th Edition)
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.
"If you want to learn to speak the world's most popular programming language like a native, Java For Dummies is your ideal companion. With a focus on reusing existing code, it quickly and easily shows you how to create basic Java objects, work with Java classes and methods, understand the value of variables, learn to control program flow with loops or decision-making statements, and so much more! Java is everywhere, runs on almost any computer, and is the engine that drives the coolest applications. Written for anyone who's ever wanted to tackle programming with Java but never knew quite where to begin, this bestselling guide is your ticket to success! Featuring updates on everything you'll encounter in Java 9and brimming with tons of step-by-step instructionit's the perfect resource to get you up and running with Java in a jiffy!"--Amazon.com. 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. It 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, it 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 and it features a companion website that offers all code from the book and bonus chapters.-Provided by Publisher