Which class should be used to format a number as currency for a specific locale in Java?
-
A
java.util.Currency
-
B
java.text.DecimalFormat using pattern '¤#,##0.00'
-
C
java.text.NumberFormat obtained via NumberFormat.getCurrencyInstance(locale)
-
D
java.lang.String.format() with the %c specifier