已知 java.util.Date[] dates = new java.util.Date[10], 以下哪个描述是正确的?().
A: dates is null
B: dates[0] is null
C: dates = new Date() is fine, which creates a new Date object and
assigns to dates
D: dates = new java.util.Date[5] is wrong
A: dates is null
B: dates[0] is null
C: dates = new Date() is fine, which creates a new Date object and
assigns to dates
D: dates = new java.util.Date[5] is wrong
举一反三
- 假设java.util.Date[] dates = new java.util.Date[10],下列哪些说法是正确的? A: dates 的值为 null. B: dates[0] 为 null C: dates = new java.util.Date[5] 是正确的,为dates分配了一个新数组的引用 D: dates = new Date() 是正确的,它创建一个新的date对象,并把它复制给dates
- 【单选题】The culture Tang Dynasty. A: dates on B: date to C: dates from
- L/C indicates three dates, which must be met to be paid: the latest date for shipment, the expiry date for presentation of documents and the expiry date of the L/C.
- As per UCP600, the words “to”, “till”, “from”, “between” when used to determine a period of shipment include the date or dates mentioned, the words “before” and “after” exclude the date mentioned. ()
- 关于包的导入,以下选项正确的是()。 A: import java.*; B: import java.util.Date; Date today = new Date(); C: import java.*.*; D: import java.util.*; import java.sql.*; Date today = new Date();