假设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
A: dates 的值为 null.
B: dates[0] 为 null
C: dates = new java.util.Date[5] 是正确的,为dates分配了一个新数组的引用
D: dates = new Date() 是正确的,它创建一个新的date对象,并把它复制给dates
举一反三
- 已知 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 <br/>assigns to dates D: dates = new java.util.Date[5] is wrong
- 已知java.util.Date[]<br/>dates = new java.util.Date[10], 以下哪个描述是正确的?() A: dates<br/>is null B: dates[0]<br/>is null C: dates<br/>= new Date() is fine, which creates a new Date object and <br/>assigns<br/>to dates D: dates<br/>= new java.util.Date[5] is wrong
- 【单选题】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. ()