多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

NumberFormat nf= NumberFormat.getInstance();  nf.setMaximumFractionDigits(4);  nf.setMinimumFractionDigits(2);  String a = nf.format(3.1415926);  String b = nf.format(2);  Which two are true about the result if the default locale is Locale.US?()

  • 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.
正确答案:C,F
答案解析:
进入题库查看解析

微信扫一扫手机做题