black

OCJP(310-065)

登录

单项选择题

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.

相关考题

单项选择题 Given: What is the result?()

单项选择题 Given: Which statement is true?()

多项选择题 Given that Triangle implements Runnable, and: Which two statements, inserted independently at both lines 35 and 41, tend to allow both threads totemporarily pause and allow the other thread to execute?()

All Rights Reserved 版权所有©考试题库网(kstiku.com)

备案号:湘ICP备14005140号-3

经营许可证号:湘B2-20140064