The java.math Package

Java 2 includes a java.math package with the BigDecimal and BigInteger classes for arbitrary precision arithmetic. Objects created from these classes can represent numbers with any desired degree of precision, and the methods can conduct any of Java's normal arithmetic operations. The BigDecimal methods are used primarily for financial calculations in which the rounding method needs to be specified exactly. BigInteger is mostly of interest to programmers doing cryptography.

You are not expected to know about the java.math package for the exam, but you are expected to know the java.lang.Math class, which was covered in Chapter ...

Get Java 2™ Programmer Exam Cram™ 2 (Exam CX-310-035) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.