Currency Class Flashcards

1
Q

Returns ISO 4217 numeric code for the currency.

A

int getNumericCode()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

int getDefaultFractionDigits()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

String getDisplayName()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

String getDisplayName(Locale locale)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Returns the Currency object corresponding to the given currency code.

A

Currency.getInstance(String currencyCode)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Returns the Currency object corresponding to the given Locale object.

A

Currency.getInstance(Locale locale)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Returns a Set of Currency instances available in the JDK.

A

Currency.getAvailableCurrencies.()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

String getSymbol()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Returns the currency symbol for the given Locale object.

A

String getSymbol(Locale)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

String getCurrencyCode()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly