Currency Class Flashcards Preview

OCP > Currency Class > Flashcards

Flashcards in Currency Class Deck (10):
1

Returns ISO 4217 numeric code for the currency.

int getNumericCode()

2

Returns the default number of digits used with the currency, such as zero for the Japanese Yen and two for the US Dollar.

int getDefaultFractionDigits()

3

Returns the readable description of the Currency for the underlying locale, for example, US Dollar.

String getDisplayName()

4

Returns the readable description of the Currency for the given locale.

String getDisplayName(Locale locale)

5

Returns the Currency object corresponding to the given currency code.

Currency.getInstance(String currencyCode)

6

Returns the Currency object corresponding to the given Locale object.

Currency.getInstance(Locale locale)

7

Returns a Set of Currency instances available in the JDK.

Currency.getAvailableCurrencies.()

8

Returns the currency symbol, if any; otherwise returns the currency code.

String getSymbol()

9

Returns the currency symbol for the given Locale object.

String getSymbol(Locale)

10

Returns the currency code (ISO 4217) for locale of the Currency instance.

String getCurrencyCode()