阿摩線上測驗 登入

試題詳解

試卷:104年 - SCJP 151-200#99330 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:104年 - SCJP 151-200#99330

年份:104年

科目:OJCP(SCJP)

159. Given: 
11. double input = 314159.26; 
12. NumberFormat nf = NumberFormat.getInstance(Locale.ITALIAN); 
13. String b;
 14. //insert code here Which code, inserted at line 14, sets the value of b to 314.159,26?
(A) b = nf.parse(input);
(B) b = nf.format(input);
(C) b = nf.equals(input);
(D) b = nf.parseObject(input);
正確答案:登入後查看