阿摩線上測驗 登入

試題詳解

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

試卷資訊

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

年份:104年

科目:OJCP(SCJP)

174. Given:
 12. Date date = new Date(); 
13. df.setLocale(Locale.ITALY); 
14. String s = df.format(date); 
The variable df is an object of type DateFormat that has been initialized in line 11. What is the result if this code is run on December 14, 2000?
(A) The value of s is 14-dic-2000.
(B) The value of s is Dec 14, 2000.
(C) An exception is thrown at runtime.
(D) Compilation fails because of an error in line 13.
正確答案:登入後查看