Programming for fun and profit

Programming tutorials, problems, solutions. Always with code.

Java Util Currency Tutorial

The java.util.Currency class represents a currency. These are the main properties of the class:

  • Currencies are identified by their ISO 4217 currency codes
  • There is never more than one Currency instance for any given currency
  • Get instance of the class using getInstance() methods
  • the class is final and cannot be inherited.

The class declaration is:

public final class Currency
       extends Object
       implements Serializable

Methods inheritance

Objects of this class inherit methods from the following classes:

  • java.lang.Object

Methods of java.util.Currency:

Share with the World!