Which two statements are true about the result if the default locale is Locale.US? (Choose two.)

Given:

NumberFormat nf = NumberFormat.getInstance();
nf.setMaximumFractionDigits(4);
nf.setMinimumFractionDigits(2);
String a = nf.format(3.1415926);
String b = nf.format(2);

Which two statements are true about the result if the default locale is Locale.US? (Choose two.)

Given:

NumberFormat nf = NumberFormat.getInstance();
nf.setMaximumFractionDigits(4);
nf.setMinimumFractionDigits(2);
String a = nf.format(3.1415926);
String b = nf.format(2);

Which two statements are true about the result if the default locale is Locale.US? (Choose two.)

A.
The value of b is 2.

B.
The value of a is 3.14.

C.
The value of b is 2.00.

D.
The value of a is 3.141.

E.
The value of a is 3.1415.

F.
The value of a is 3.1416.

G.
The value of b is 2.0000.



Leave a Reply 1

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