多项选择题
下面哪些方法可以得到昨天的当前时间?()
Calendarcal=getCalendar();
//这里填写什么???
System.out.println(cal.getTime());
A.cal.add(Calendar.DATE,-1);
B.cal.add(Calendar.DAY_OF_MONTH,-1);
C.cal.add(Calendar.DAY_OF_WEEK,-1);
D.cal.add(Calendar.DAY_OF_YEAR,-1);
点击查看答案&解析
相关考题
-
单项选择题
Floats=newFloat(0.9F);Floatt=newFloat(0.9F);Doubleu=newDouble(0.9);下列哪个表达式的结果是true?()
A.s==t
B.s.equals(t)
C.s==u
D.t.equals(u) -
多项选择题
Which of the following will definitely stop a thread from executing?()
A.wait()
B.notify()
C.yield()
D.suspend()
E.sleep() -
多项选择题
The ThreadGroup class instance()
A.Allows threads to be manipulated as group
B.Provides support for ThreadDeath listeners
C.May contain other ThreadGroups
D.Must contain threads of the same type
