单项选择题

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).
题目列表

你可能感兴趣的试题

微信扫码免费搜题