What do you think?
Rate this book


If you've always wanted to program with Java but didn't know where to start, this will be the java-stained reference you'll turn to again and again. Fully updated for the JDK 9, this deep reference on the world's most popular programming language is the perfect starting point for building things with Java—and an invaluable ongoing reference as you continue to deepen your knowledge.
Clocking in at over 900 pages, Java All-in-One For Dummies takes the intimidation out of learning Java and offers clear, step-by-step guidance on how to download and install Java tools; work with variables, numbers, expressions, statements, loops, methods, and exceptions; create applets, servlets, and JavaServer pages; handle and organize data; and so much more.
Focuses on the vital information that enables you to get up and running quickly with Java Provides details on the new features of JDK 9 Shows you how to create simple Swing programs Includes design tips on layout, buttons, and labelsEverything you need to know to program with Java is included in this practical, easy-to-use guide!
960 pages, Kindle Edition
First published January 1, 2005
Error 1, in Book 2 Chapter 3, section: Using Increment and Decrement Operators, page 129
int a = 5;
int b = a--; // both a and b are set to 4
When the second statement is executed, the expression a--is evaluated first, so a
is set to 4. Then the new value of a is assigned to b. Thus both a and b are set to 4.
should be a--
Error 2, in Book 2 Chapter 3, section: Using Increment and Decrement Operators, page 130
int a = 5;
int b = --a; // b is set to 5, a is set to 4.
This example is similar to an earlier example, but this time the prefix increment
operator is used. When the second statement is executed, the value of a is assigned
to b. Then a is decremented. As a result, b is set to 5, and a is set to 4.
should be a-- postfix decrement
Error 3, in Book 2 Chapter 3, section: Division by zero, page 149
» If you divide a number by zero, and the sign of both numbers is the same, the
result is positive infinity. 0.0 divided by 0.0 is positive infinity, as is -34.0 divided by -0.0.
should be 40.0
» If you divide a number by zero, and the signs of the numbers are different, the
result is negative infinity. -40.0 divided by 0.0 is negative infinity, as is 34.0 divided by 0.0.
should be -0.0