可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

NumberFormat nf= NumberForm


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.
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值

若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值为()A0B-1C1D2

2、AMPS通信系统属于第()代移动通信。

AMPS通信系统属于第()代移动通信。A第一代B第二代C第三代D第四代

3、AMPS属于()。

AMPS属于()。A1GB2GC3GD4G

4、cAMP(cyclic AMP)

cAMP(cyclic AMP)

5、表达式10>5&&6%3的值是()

表达式10>5&&6%3的值是()A-1B非零值C0D1

6、AMPS

AMPS