Oracle
1Z0-804 · Question #96
Which is a factory method from the java.text.NumberFormat class?
The correct answer is B. getInstance(). To obtain a NumberFormat for a specific locale, including the default locale, call one ofNumberFormat's factory methods, such as getInstance().
Localization
Question
Which is a factory method from the java.text.NumberFormat class?
Options
- Aformat (long number)
- BgetInstance()
- CgetMaxiraumFractionDigits ()
- DgetAvailableLocales ()
- EisGroupingUsed()
How the community answered
(32 responses)- A6% (2)
- B78% (25)
- D3% (1)
- E13% (4)
Explanation
To obtain a NumberFormat for a specific locale, including the default locale, call one ofNumberFormat's factory methods, such as getInstance().
Topics
#NumberFormat#factory method#getInstance#number formatting
Community Discussion
No community discussion yet for this question.