Java Data Structure
1.Assume double[][]x = new double[4][5], what are x.length and x[2].length?
A 4 and 4
B.5 and 5
C.4 and 5
D.5 and 4
2.Which of the following is incorrect?
A.A constructor may invoke a static method.
B.A constructor may be static.
C.A constructor may be private.
D. invoke an overloaded constructor.
3.Given two reference variables t1 and t2, if t1 == t2 is true, t1.equals(t2) must be( )
A.false
B.true
4.Which method can be used to write data?
A.print
B.rename
C.exist
D.close
5.Which method can be used to read a whole line from the file?
A.nextlnt
B.nextDouble
C.nextLine
D.next
6.What is the best suitable relationship between Employee and Faculty?
A.Aggregation
- 2022-03-04
- 2022-03-04
- 2022-03-04
- 2022-03-04
创建时间:2023-11-08 01:37