Which is a factory method from the java.text.NumberFormat class?

Which is a factory method from the java.text.NumberFormat class?

Which is a factory method from the java.text.NumberFormat class?

A.
format (long number)

B.
getInstance()

C.
getMaxiraumFractionDigits ()

D.
getAvailableLocales ()

E.
isGroupingUsed()

Explanation:
To obtain a NumberFormat for a specific locale, including the default locale, call one of NumberFormat’s factory methods, such as getInstance().

Reference:java.textClass DecimalFormat



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Jav

Jav

B getInstance()