Uses of Package java.math (Java Platform SE 8 )
Date: 2026-08-19

# Uses of Package
java.math

- Packages that use java.math
  Package | Description
  --- | ---
  java.awt.image | Provides classes for creating and modifying images.
  java.math | Provides classes for performing arbitrary-precision integer arithmetic (`BigInteger`) and arbitrary-precision decimal arithmetic (`BigDecimal`).
  java.security.cert | Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
  java.security.interfaces | Provides interfaces for generating RSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm) keys as defined in the RSA Laboratory Technical Note PKCS#1, and DSA (Digital Signature Algorithm) keys as defined in NIST's FIPS-186.
  java.security.spec | Provides classes and interfaces for key specifications and algorithm parameter specifications.
  java.sql | Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language.
  java.text | Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
  java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
  javax.crypto.interfaces | Provides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3.
  javax.crypto.spec | Provides classes and interfaces for key specifications and algorithm parameter specifications.
  javax.management.openmbean | Provides the open data types and Open MBean descriptor classes.
  javax.sql | Provides the API for server side data source access and processing from the JavaTM programming language.
  javax.sql.rowset | Standard interfaces and base classes for JDBC `RowSet` implementations.
  javax.sql.rowset.serial | Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language.
  javax.xml.bind | Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.
  javax.xml.crypto.dsig.keyinfo | Classes for parsing and processing `KeyInfo` elements and structures.
  javax.xml.datatype | XML/Java Type Mappings.
  org.omg.CORBA | Provides the mapping of the OMG CORBA APIs to the JavaTM programming language, including the class `ORB`, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB).
  org.omg.CORBA.portable | Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB.

- Classes in java.math used by java.awt.image
  Class and Description
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by java.math
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.
  BigInteger Immutable arbitrary-precision integers.
  MathContext Immutable objects which encapsulate the context settings which describe certain rules for numerical operators, such as those implemented by the `BigDecimal` class.
  RoundingMode Specifies a rounding behavior for numerical operations capable of discarding precision.

- Classes in java.math used by java.security.cert
  Class and Description
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by java.security.interfaces
  Class and Description
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by java.security.spec
  Class and Description
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by java.sql
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.

- Classes in java.math used by java.text
  Class and Description
  RoundingMode Specifies a rounding behavior for numerical operations capable of discarding precision.

- Classes in java.math used by java.util
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by javax.crypto.interfaces
  Class and Description
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by javax.crypto.spec
  Class and Description
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by javax.management.openmbean
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by javax.sql
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.

- Classes in java.math used by javax.sql.rowset
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.

- Classes in java.math used by javax.sql.rowset.serial
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.

- Classes in java.math used by javax.xml.bind
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by javax.xml.crypto.dsig.keyinfo
  Class and Description
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by javax.xml.datatype
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.
  BigInteger Immutable arbitrary-precision integers.

- Classes in java.math used by org.omg.CORBA
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.

- Classes in java.math used by org.omg.CORBA.portable
  Class and Description
  BigDecimal Immutable, arbitrary-precision signed decimal numbers.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.