单项选择题
执行代码片段:Dated=newDate();System.out.println(d);代码的输出()?
A.输出系统当前时间
B.输出地址值
C.输出地址字符串
D.输出毫秒值
点击查看答案&解析
相关考题
-
单项选择题
执行代码片段Calendarcal=Calendar.getInstance();System.out.println(c.get(Calendar.DAY_OF_WEEK));打印输出为2,表示()?
A.星期一
B.星期二
C.星期三
D.星期日 -
单项选择题
如果要将日期格式化为字符串可以采用()函数进行操作()
A.parse
B.format
C.getInstance
D.set -
单项选择题
在SimpleDateFormat这个类中哪个方法可以将时间格式化为字符串?()
A.parse
B.formet
C.formant
D.format