nerdexam
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)
  • A
    6% (2)
  • B
    78% (25)
  • D
    3% (1)
  • E
    13% (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.

Full 1Z0-804 Practice