多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

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-2004.
  • 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.
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题