Java Data Structure
1.Assume doublex = new double, what are x.length and x.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( )
4.Which method can be used to write data?
5.Which method can be used to read a whole line from the file?
6.What is the best suitable relationship between Employee and Faculty?