Java for Dummies
Book information
Description
Brief Contents......Page 3 Contents......Page 4 Start with Java......Page 19 All about Java......Page 20 What You Can Do with Java......Page 21 Why You Should Use Java......Page 22 Getting Perspective: Where Java Fits In......Page 23 Object-Oriented Programming (OOP)......Page 25 What’s Next?......Page 32 Quick-Start Instructions......Page 33 What You Install on Your Computer......Page 36 Speaking the Java Language......Page 51 Checking Out Java Code for the First Time......Page 55 Understanding a Simple Java Program......Page 56 And Now, a Few Comments......Page 67 Writing Java Programs......Page 73 Variables & Values......Page 74 Varying a Variable......Page 75 Experimenting with JShell......Page 85 The Atoms: Java’s Primitive Types......Page 89 The Molecules and Compounds: Reference Types......Page 94 An Import Declaration......Page 98 Creating New Values by Applying Operators......Page 100 Decision-making Statements......Page 112 Making Decisions (Java if Statements)......Page 113 Using Blocks in JShell......Page 123 Forming Conditions with Comparisons and Logical Operators......Page 124 Building a Nest......Page 134 Choosing among Many Alternatives (Java switch Statements)......Page 137 Loops......Page 146 Repeating Instructions Over and Over Again (Java while Statements)......Page 147 Repeating a Certain Number of Times (Java for Statements)......Page 150 Repeating until You Get What You Want (Java do Statements)......Page 157 OOP......Page 165 Classes & Objects......Page 166 Defining a Class (What It Mean to Be an Account)......Page 167 Defining a Method within a Clas (Displaying an Account)......Page 174 Sending Values to and from Methods (Calculating Interest)......Page 178 Making Numbers Look Good......Page 185 Hiding Details with Accessor Methods......Page 190 Barry’s Own GUI Class......Page 195 Reusing Code......Page 202 Defining a Class (What It Means t Be an Employee)......Page 203 Working with Disk Files (a Brief Detour)......Page 210 Defining Subclasses (What It Means t Be a Full-Time or Part-Time Employee)......Page 219 Using Subclasses......Page 224 Overriding Existing Methods (Changing the Payments for Some Employees)......Page 229 Constructing Objects......Page 235 Defining Constructors (What It Mean to Be a Temperature)......Page 236 More Subclasses (Doing Something about the Weather)......Page 247 A Constructor That Does More......Page 254 Smart Java Techniques......Page 260 Variables & Methods......Page 261 Defining a Class (What It Mean to Be a Baseball Player)......Page 262 Making Static (Finding the Team Average)......Page 269 Experiments with Variables......Page 279 Passing Parameters......Page 287 Getting Your Ducks All in a Row......Page 295 Arrays of Objects......Page 309 Command Line Arguments......Page 317 Understanding the Limitations of Arrays......Page 323 Collection Classes to the Rescue......Page 325 Functional Programming......Page 335 Unexpected Turns......Page 353 Handling Exceptions......Page 354 Handle an Exception or Pass the Buck......Page 371 Finishing the Job with a finally Claus......Page 378 A try Statement with Resources......Page 381 Sharing Names......Page 384 Access Modifier......Page 385 Classes, Access, and Multipart Programs......Page 386 Sneaking Away from the Original Code......Page 395 Protected Access......Page 401 Access Modifiers for Java Classe......Page 407 Java’s Types......Page 410 The Java Interface......Page 411 Abstract Classes......Page 418 Relax! You’re Not Seeing Double!......Page 425 Keystrokes & Mouse Clicks......Page 428 Go On . . . Click That Button......Page 429 Responding to Things Other Than Button Clicks......Page 437 Creating Inner Classes......Page 442 Java Database Connectivity......Page 446 Creating a Database and a Table......Page 447 Putting Data in the Table......Page 451 Retrieving Data......Page 452 Destroying Data......Page 454 The Part of Tens......Page 456 Putting Capital Letters Where They Belong......Page 457 Comparing Values with a Double Equal Sign......Page 458 Defining the Required Constructor......Page 459 Staying within Bounds in an Array......Page 460 Anticipating Null Pointers......Page 461 Helping Java Find Its Files......Page 462 The Horse’s Mouth......Page 463 Got a Technical Question?......Page 464 Index......Page 465
Similar books
Flutter For Dummies
2020 · AZW
Java For Dummies, 9th Edition
2024 · EPUB
Java® For Dummies®
2024 · EPUB
Quantum Computing Algorithms
2023 · PDF
Quantum Computing Algorithms: Discover how a little math goes a long way
2023 · EPUB
Quantum Computing Algorithms: Discover how a little math goes a long way
2023 · PDF
Quantum Computing Algorithms: Discover how a little math goes a long way
2023 · PDF
Java für Dummies: Übersetzer: Muhr, Judith
2023 · EPUB