136k views
2 votes
The advantages of the DecimalFormat class compared with the NumberFormat class include Group of answer choices

1. precise control over the number of digits to be displayed
2. control over the presence of a leading zero
3. the ability to truncate values rather than to round them
4. the ability to display a % automatically at the beginning of the display
5. only A and B

1 Answer

2 votes

Answer:5. only A and B(precise control over the number of digits to be displayed and control over the presence of a leading zero)

Explanation: DECIMAL FORMAT CLASS is a subclass of Number format class specifically made to format parsing decimal Numbers. It is capable of formating both ARABIC, WESTERN AND INDIC DIGITS. It has a unique Attribute of control over the number of digits to be displayed and control over the presence of a leading zero.

NUMBER FORMAT CLASS is the class for formatting parsing numbers it helps to format According to Specific locale.

User Mikeck
by
5.8k points