网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
多选题
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.
参考答案
参考解析
解析:
严格来说这个问题的答案是不确定的,因为equals()方法是可以被重载的,但是按照java语言的本意来说:如果没有重写(override)新类的equals(),则该方法和 == 操作符一样在两个变量指向同一对象时返回真,但是java推荐的是使用equals()方法来判断两个对象的内容是否一样,就像String类的equals()方法所做的那样:判定两个String对象的内容是否相同,而==操作符返回true的唯一条件是两个变量指向同一对象。从这个意义上来说选择给定的答案。从更严格的意义来说正确答案应该只有D。
更多 “多选题Which of the following statements are true?()AThe equals() method determines if reference values refer to the same object.BThe == operator determines if the contents and type of two separate objects match.CThe equals() method returns true only when the contents of two objects match.DThe class File overrides equals() to return true if the contents and type of two separate objects match.” 相关考题
考题
Which of the following statements is NOT true about vagina? ()
A、It is a small sensory organ, which is located toward the front of the vulva where the folds of the labia joinB、It is a female’s external reproductive organC、It is a muscular, hollow tube that extends from the vaginal opening to the uterusD、It is shaped like an upside-down pear, with a thick lining and muscular walls
考题
Which of the following statements is NOT true?A.Sir Ludwig Guttmann is an early organizer of the games for the disabled.B.Sir Ludwig Guttmann is an injured soldier.C.Sir Ludwig Guttmann is from Germany.D.Sir Ludwig Guttmann is welcomed by the British.
考题
Which of the following statements about Leopold and Rudolph Blaschka is TRUE?A. They were brothers.B. They were artists.C. They were florists.D. They were farmers.
考题
Which of the following statements about testing software with data is (are) true?Ⅰ.The primary purpose of such testing is to find errors.Ⅱ.Such testing can demonstrate the existence of errors but cannot demonstrate the absence of errors.A.NeitherB.I onlyC.ⅡonlyD.Ⅰand Ⅱ
考题
Which of the following statements are true of collectivist culture?
A、Disclosure of private feeling is distasteful.B、People are suspicious of outsiders.C、Uniformity is not highly thought of.D、there is a positive attitude about words of disagreement.
考题
Which of the following statements is true? Accounts payable are ______.A.debts owed to suppliersB.related to purchases of goods on an open accountC.current liabilitiesD.all of the above
考题
Which of following statements about testing software with data is (are) true?Ⅰ.The primary purpose of such testing is to find errors.Ⅱ.Such testing can demonstrate the existence of errors but can not demonstrate the absence of errors.A.NeitherB.Ⅰ onlyC.Ⅱ onlyD.Ⅰ and Ⅱ
考题
Which of the following statements about language is NOT true?A.Language is a system
B.Language is symbol
C.Animals also have language
D.Language is arbitrary
考题
Which of the following statements is true regarding the VERSIONS BETWEEN clause?() A、 The VERSIONS BETWEEN clause may be used in DML statements.B、 The VERSIONS BETWEEN clause may be used in DDL statements.C、 The VERSIONS BETWEEN clause may not be used to query past DDL changes to tables.D、 The VERSIONS BETWEEN clause may not be used to query past DML statements to tables.
考题
Which of the following statements is true about a router's eBGP peers that is not also true about that same router's iBGP peers?()A、The eBGP peer neighborship uses TCPB、The eBGP peer uses port 180 (default)C、The eBGP peer uses the same ASN as the local routerD、The eBGP peer updates its AS_Path PA before sending updates to this router
考题
Which ONE of the following statements about Domino Enterprise server is true?()A、Can host Active Server Pages Web sitesB、Can host PHP Web sitesC、Includes a DB2 serverD、Includes an integrated Web application server
考题
Krstin has created a page in the videos application .which one of the following statements about pages is not true ?()A、pages are design elementsB、Pages can be full-text indexed C、pages can be referenced by outlines or frames D、pages can include text,graphics ,applets,and links
考题
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.
考题
Which of the following statements are true regarding the Recycle Bin?()A、 The Recycle Bin is a physical storage area for dropped objects.B、 The Recycle Bin is a logical container for dropped objects.C、 The Recycle Bin stores the results of a Flashback Drop operation.D、 The objects in the Recycle Bin are stored in the tablespace in which they were created.
考题
多选题If p and q are primes greater than 2, which of the following statements must be true? (Indicate all such statements.)Ap + q is evenBpq is oddCp2-q2 is even
考题
多选题Concerning the figure below, if a =b, which of the following statements must be true? (Indicate all such statements.)Ac=dBl and k are parallelCm and l are perpendicular
考题
多选题Which of the following statements are true? (Indicate all such statements.)Aτ(5) =τ(7)Bτ(5) τ(7) =τ(35)Cτ(5) + τ(7) =τ(12)
考题
单选题Which of the following statements about the golf club is NOT true?A
It’s at the top of the cliff.B
They were not allowed to be in the club.C
They parked the car near the club.
考题
单选题Which of the following statements is true according to the passage?A
Earthquake destruction is declining.B
Earthquake forecast is improving.C
Man is no longer fearful of earthquakes.D
Man is capable of conquering earthquakes.
考题
单选题Which of the following statements is true according to the news?A
In Vietnam there are three people died of suspected bird flu.B
The virus has spread across the entire Thailand.C
The health workers in Thailand conducted stringent surveillance measures.
考题
单选题Which of the following statements is NOT true according to the passage?A
New England winters are cold.B
Some taxi drivers are impolite.C
The U. S. A is a popular place for tourists.D
Hotel staff are often sympathetic.
考题
多选题Which of the following statements are true? ()ARC4 is a stream cipherBStream ciphers require paddingCAES is a block cipherDDES and 3DES are stream ciphersEAES is a stream cipherFAES, DES, and 3DES can be used as HMAC algorithms
考题
单选题Which of the following statements is true regarding the VERSIONS BETWEEN clause?()A
The VERSIONS BETWEEN clause may be used in DML statements.B
The VERSIONS BETWEEN clause may be used in DDL statements.C
The VERSIONS BETWEEN clause may not be used to query past DDL changes to tables.D
The VERSIONS BETWEEN clause may not be used to query past DML statements to tables.
热门标签
最新试卷