多项选择题
Which of the following statements are true?()
A. The equals() method determines if reference values refer to the same object.
B. The == operator determines if the contents and type of two separate objects match.
C. The equals() method returns true only when the contents of two objects match.
D. The class File overrides equals() to return true if the contents and type of two separate objects match.
相关考题
-
多项选择题
WhicharenotJavakeywords?()
A. TRUE
B. sizeof
C. const
D. super
E. void -
单项选择题
Whichofthefollowingansweriscorrecttoexpressthevalue8inoctalnumber?()
A. 010
B. 0x10
C. 08
D. 0x8 -
多项选择题
Given the following code fragment: public void create() { Vector myVect; myVect = new Vector(); } Which of the following statements are true?()
A. The declaration on line 2 does not allocate memory space for the variable myVect.
B. The declaration on line 2 allocates memory space for a reference to a Vector object.
C. The statement on line 2 creates an object of class Vector.
D. The statement on line 3 creates an object of class Vector.
E. The statement on line 3 allocates memory space for an object of class Vector.
