当前位置:SCJP程序员认证考试题库

问题:

[多选]

14. DateFormat df; 
15. Date date = new Date(); 
16. //insert code here 
17. String s = df.format( date); 
Which two,inserted independently at line 16, allow the code to compile?()

A .  df= new DateFormat();
B .  df= Date.getFormatter();
C .  df= date.getFormatter();
D .  df= date.getDateFormatter();
E . df = DateFormat.getDateInstance();
F .  df= DateFormat.getInstance();

读者成分主要有()、()、()、()、()。 现场检测仪表的要求有哪些? 使用直流双臂电桥有哪些要特别注意的事项。 特种文献资料是指出版形式比较特殊的科学技术文献资料。它是() 定期出版物。 不定期出版物。 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?()   The value of s is 14-dic-2004.。  The value of s is Dec 14, 2000.。  An exception is thrown at runtime.。  Compilation fails because of an error in line 13.。

14. DateFormat df; 
15. Date date = new Date(); 
16. //insert code here 
17. String s = df.format( date); 
Which two,inserted independently at line 16, allow the code to compile?()

参考答案:

  参考解析

本题暂无解析

在线 客服