多选题
Given the proper imports, and given:
24. Date d1 = new Date();
25. Date d2 = d1;
26. System.out.println(d1);
27. d2.setTime(d1.getTime() + (7 * 24 * 60 * 60));
28. System.out.println(d2);
Which are true? (Choose all that apply.)
A、
Compilation fails.
B、
An exception is thrown at runtime.
C、
Some of the output will be today"s date.
D、
Some of the output will be next week"s date.
E、
Some of the output will represent the Java "epoch" (i.e., January 1, 1970).
【正确答案】
C
【答案解析】
提交答案
关闭