Bøger / faglitteratur / bibliografier


Beskrivelse


This book is a complete learning experience in Java and object-oriented programming. With this book, you'll learn the Java language with a unique method that goes beyond how-to manuals and helps you become a great programmer. Through puzzles, mysteries, and soul-searching interviews with famous Java objects, you'll quickly get up to speed on Java's fundamentals and advanced topics including lambdas, streams, generics, threading, networking, and the dreaded desktop GUI.

Indhold

Seneste udgave,

Breaking the Surface. The way Java works. Code structure in Java. Anatomy of a class. The main() method. Looping. Conditional branching (if tests). Coding the "99 bottles of beer" app. Phrase-o-matic. Fireside chat: compiler vs. JVM. A Trip to Objectville. Chair Wars (Brad the OO guy vs. Larry the procedural guy). Inheritance (an introduction). Overriding methods (an introduction). What's in a class? (methods, instance variables). Making your first object. Using main(). Guessing Game code. Know Your Variables. Declaring a variable (Java cares about type). Primitive types ("I'd like a double with extra foam, please"). Java keywords. Reference variables (remote control to an object). Object declaration and assignment. Objects on the garbage-collectible heap. Arrays (a first look). How Objects Behave. Methods use object state (bark different). Method arguments and return types. Pass-by-value (the variable is always copied). Getters and Setters. Encapsulation (do it or risk humiliation). Using references in an array. Extra-Strength Methods. Building the Sink a Dot Com game. Starting with the Simple Dot Com game (a simpler version). Writing prepcode (pseudocode for the game). Test code for Simple Dot Com. Coding the Simple Dot Com game. Final code for Simple Dot Com. Generating random numbers with Math.random(). Ready-bake code for getting user input from the command-line. Looping with for loops. Casting primitives from a large size to a smaller size. Converting a String to an int with Integer.parseInt(). Using the Java Library. Analying the bug in the Simple Dot Com Game. ArrayList (taking advantage of the Java API). Fixing the DotCom class code. Building the real game (Sink a Dot Com). Prepcode for the real game. Code for the real game. boolean expressions. Using the library (Java API). Using packages (import statements, fully-qualified names). Using the HTML API docs and reference books. Better Living in Objectville. Understanding inheritance (superclass and su


Tidsskrift

Artiklen er en del af

Artiklerne i  handler ofte om

Artikler med samme emner

Fra


Artikler

Alle registrerede artikler fordelt på udgivelser

...

...

...

...

...