100% found this document useful (1 vote)
97 views

Beginning Java Programming The Object-Oriented Approach - Errata

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
97 views

Beginning Java Programming The Object-Oriented Approach - Errata

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Beginning Java Programming: The Object-Oriented Approach - Wrox http://www.wrox.com/WileyCDA/WroxTitle/Beginning-Java-Progra...

Topic: Java

Beginning Java Programming: The Object-Oriented


Paperback Version: US
Approach $45.00
Add to Cart
Bart Baesens, Aimee Backiel, Seppe vanden Broucke
Find this book at your
ISBN: 978-1-118-73949-5
favorite retailer
Paperback
672 pages
March 2015
Other Available Formats: Wiley E-Text

If you are an instructor, you may request an evaluation copy for this title.

About This Title | Download Code | Errata | P2P Forum for This Title

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form.
We will attempt to verify your error; if you're right, we will post a correction below.

Chapter Page Details Date Print Run

27 Text Correction 05/01/15


Page 27 Table 2-6: Java Primitive Data Types
Short Minimum listed as:
"32,768" should be:
" -32,768"

74 Text Correction: Error in Code 05/01/15


Try It Out section:
Incorrect code currently reads:
System.out.println("The student object referred to "+
"by the variable secondStudent has the first "+
"name: "+secondStudent);
should be:
System.out.println("The student object referred to " +
"by the variable secondStudent has the first " +
"name: " + secondStudent.firstName);

6 179 Error in Code 6/12/2015


(beginning of code in "Precision Rounding" Box)
Currently reads:

import java.math.BigDecimal;

public class Errors {

Should Read:

Import java.math.BigDecimal;

public class BigDecimalCalculator {

6 179 Error in Code 6/12/2015


(Second block of code in "Precision Rounding" box)
Currently Reads:
}
BigDecimal monthlyPension = retirementFund.divide(
yearsInRetirement.multiply(new BigDecimal("12"));
System.out.println(name + " will have $" + monthlyPension
+ " per month for retirement.");
}
Should Read:
}
BigDecimal monthlyPension = retirementFund.divide (
yearsInRetirement.multiply(new BigDecimal("12")),
2,BigDecimal.ROUND_HALF_UP);
System.out.println(name + " will have $" + monthlyPension
+ " per month for retirement.");
}

6 180 Error in Code 6/12/2015


(beginning of code in grey box)
Currently Reads:

import java.math.BigDecimal;

public class Errors {


Should Read:

Import java.math.BigDecimal;

public class BigDecimalCalculator {

6 180 Error in Code 6/12/2015


(second block of code in grey box)
Currently Reads:
}
BigDecimal monthlyPension = retirementFund.divide(
yearsInRetirement.multiply(new BigDecimal("12"));
System.out.println(name + " will have $" + monthlyPension + "
per month for retirement."); }
Should Read:
}
BigDecimal monthlyPension = retirementFund.divide (
yearsInRetirement.multiply(new BigDecimal("12")), 2,
BigDecimal.ROUND_HALF_UP);
System.out.println(name + " will have $" + monthlyPension + "
per month for retirement.");

1 of 2 08/03/2019 07:51
Beginning Java Programming: The Object-Oriented Approach - Wrox http://www.wrox.com/WileyCDA/WroxTitle/Beginning-Java-Progra...

254 Text Correction 05/01/15


Pages 254-255
In step 4 of the Try It Out (Title: Try It Out: Implementing
Interfaces),
there is a code snippet, please add the following text after the
snippet (before step 5):

You might notice that Eclipse doesn't recognize IllegalDeposit or


IllegalWithdrawal. These exceptions haven't been defined
yet. You could use the standard exception types you saw in the
previous
chapter, such as IllegalArgumentException. In other cases,
you might want to define your own Exception for the specific
situation. If you double click on the error in Eclipse, you can
select
“Create class: IllegalDeposit” to create
your own class called IllegalDeposit which extends the class
Exception.
You can also create this class yourself, as you always have, and
just make sure it extends Exception.

8 277 Error in Code 6/2/2015


In step 2 in the code:
Currently reads:
Reader in
Should be:
BufferedReader in

2 27 Errata in text 27-


Table 2-6: Feb-2018
the cell in the second row and second column "18-bit signed
integer" Should be "16-bit signed integer"

2 33 Errata in text 19-Apr-18


table 2-12, third row 'or' column should be 'true'

About Wrox | Contact Us | Subscribe to an RSS Feed of New Wrox Titles


Copyright © 2000-2019 by John Wiley & Sons, Inc. or related companies. All rights reserved. Please read our Privacy Policy.

2 of 2 08/03/2019 07:51

You might also like