欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

多项选择题

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.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题