多选题Which two statements are true regarding the return values of property written hashCode and equals methods from two instances of the same class?()AIf the hashCode values are different, the objects might be equal.BIf the hashCode values are the same, the

题目
多选题
Which two statements are true regarding the return values of property written hashCode and equals methods from two instances of the same class?()
A

If the hashCode values are different, the objects might be equal.

B

If the hashCode values are the same, the object must be equal.

C

If the hashCode values are the same, the objects might be equal.

D

If the hashCode values are different, the objects must be unequal.


相似考题
参考答案和解析
正确答案: A,D
解析: 暂无解析
更多“Which two statements are true regarding the return values of”相关问题
  • 第1题:

    Which two statements are true regarding L2TP? ()(Choose two.)

    A. Tunnels are initiated by the LAC

    B. Tunnels are initiated by the LNS

    C. By default, subscriber authentication occurs on the LNS

    D. By default, subscriber authentication occurs on the LAC


    参考答案:A, C

  • 第2题:

    Which statement is true regarding the INTERSECT operator?()

    • A、It ignores NULL values 
    • B、Reversing the order of the intersected tables alters the result 
    • C、The names of columns in all SELECT statements must be identical 
    • D、The number of columns and data types must be identical for all SELECT statements in the query 

    正确答案:D

  • 第3题:

    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.

    正确答案:A,D

  • 第4题:

    Which two statements are true regarding L2TP? ()(Choose two.)

    • A、Tunnels are initiated by the LAC
    • B、Tunnels are initiated by the LNS
    • C、By default, subscriber authentication occurs on the LNS
    • D、By default, subscriber authentication occurs on the LAC

    正确答案:A,C

  • 第5题:

    Which two statements are TRUE regarding Coherence Indexes ? ()

    • A、 indexes are maintained by cache entry ownes
    • B、 an application should not suggest an index that another aplication had suggested
    • C、 indexes cannot be sorted
    • D、 each application using Coherence may suggest the same set of indexes when it starts

    正确答案:A,D

  • 第6题:

    Which three statements are true regarding single-row functions?()

    • A、 They can accept only one argument.
    • B、 They can be nested up to only two levels.
    • C、 They can return multiple values of more than one data type.
    • D、 They can be used in SELECT, WHERE, and ORDER BY clauses.  
    • E、 They can modify the data type of the argument that is referenced.
    • F、 They can accept a column name, expression, variable name, or a user-supplied constant as arguments.

    正确答案:D,E,F

  • 第7题:

    多选题
    Which two statements are true regarding the default behavior of the ORDER BY clause? ()
    A

    Null values are left out of the sort.

    B

    Character values are displayed from Z to A

    C

    Date values are displayed with the earliest value first.

    D

    Null values are displayed last for descending sequences.

    E

    Numeric values are displayed with the lowest values first.


    正确答案: C,B
    解析: 暂无解析

  • 第8题:

    多选题
    Which two statements are true regarding the return values of property written hashCode and equals methods from two instances of the same class?()
    A

    If the hashCode values are different, the objects might be equal.

    B

    If the hashCode values are the same, the object must be equal.

    C

    If the hashCode values are the same, the objects might be equal.

    D

    If the hashCode values are different, the objects must be unequal.


    正确答案: B,A
    解析: 暂无解析

  • 第9题:

    多选题
    Which two statements are true regarding route preference?()
    A

    Lower preference values are more preferred than higher preference values.

    B

    You can modify the default preference values for any of the routing information sources.

    C

    By default, a static route is more preferred than a RIP route.

    D

    A static route is always preferred over a direct route.


    正确答案: B,D
    解析: 暂无解析

  • 第10题:

    多选题
    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.


    正确答案: C,D
    解析: 严格来说这个问题的答案是不确定的,因为equals()方法是可以被重载的,但是按照java语言的本意来说:如果没有重写(override)新类的equals(),则该方法和 == 操作符一样在两个变量指向同一对象时返回真,但是java推荐的是使用equals()方法来判断两个对象的内容是否一样,就像String类的equals()方法所做的那样:判定两个String对象的内容是否相同,而==操作符返回true的唯一条件是两个变量指向同一对象。从这个意义上来说选择给定的答案。从更严格的意义来说正确答案应该只有D。

  • 第11题:

    多选题
    Which two statements are true regarding single row functions?()
    A

    They accept only a single argument

    B

    They can be nested only to two levels

    C

    Arguments can only be column values or constants

    D

    They always return a single result row for every row of a queried table

    E

    They can return a data type value different from the one that is referenced


    正确答案: A,B
    解析: 暂无解析

  • 第12题:

    单选题
    Which statement is true regarding the INTERSECT operator?()
    A

    It ignores NULL values 

    B

    Reversing the order of the intersected tables alters the result 

    C

    The names of columns in all SELECT statements must be identical 

    D

    The number of columns and data types must be identical for all SELECT statements in the query 


    正确答案: D
    解析: 暂无解析

  • 第13题:

    Which two statements are true regarding route preference?()

    A. Lower preference values are more preferred than higher preference values.

    B. You can modify the default preference values for any of the routing information sources.

    C. By default, a static route is more preferred than a RIP route.

    D. A static route is always preferred over a direct route.


    参考答案:A, C

  • 第14题:

    Which two statements are true regarding the return values of property written hashCode and equals methods from two instances of the same class?()

    • A、 If the hashCode values are different, the objects might be equal.
    • B、 If the hashCode values are the same, the object must be equal.
    • C、 If the hashCode values are the same, the objects might be equal.
    • D、 If the hashCode values are different, the objects must be unequal.

    正确答案:C,D

  • 第15题:

    Which two statements are true regarding high-availability chassis clustering?()

    • A、A chassis cluster consists of two devices.
    • B、A chassis cluster consists of two or more devices.
    • C、Devices participating in a chassis cluster can be different models.
    • D、Devices participating in a chassis cluster must be the same models

    正确答案:A,D

  • 第16题:

    Which two statements are true about precedence values in policy?() (Choose two.)

    • A、1 is the default precedence.
    • B、A lower number is preferred.
    • C、A higher number is preferred.
    • D、100 is the default precedence.

    正确答案:B,D

  • 第17题:

    Which two statements are true regarding subqueries? ()

    • A、A subquery can retrieve zero or more rows 
    • B、Only two subqueries can be placed atone level 
    • C、A subquery can be used only in SQL query statements 
    • D、A subquery can appear on either side of a comparison operator 
    • E、There is no limit on the number of subquery levels in the WHERE clause of a SELECT statement 

    正确答案:A,D

  • 第18题:

    多选题
    Which two statements are true about precedence values in policy?() (Choose two.)
    A

    1 is the default precedence.

    B

    A lower number is preferred.

    C

    A higher number is preferred.

    D

    100 is the default precedence.


    正确答案: C,B
    解析: 暂无解析

  • 第19题:

    多选题
    Which three statements are true regarding single-row functions?()
    A

    They can accept only one argument.

    B

    They can be nested up to only two levels.

    C

    They can return multiple values of more than one data type.

    D

    They can be used in SELECT, WHERE, and ORDER BY clauses.

    E

    They can modify the data type of the argument that is referenced.

    F

    They can accept a column name, expression, variable name, or a user-supplied constant as arguments.


    正确答案: F,C
    解析: 暂无解析

  • 第20题:

    多选题
    Which two statements are true regarding L2TP? ()(Choose two.)
    A

    Tunnels are initiated by the LAC

    B

    Tunnels are initiated by the LNS

    C

    By default, subscriber authentication occurs on the LNS

    D

    By default, subscriber authentication occurs on the LAC


    正确答案: C,D
    解析: 暂无解析

  • 第21题:

    多选题
    Which two statements are correct regarding the default protocol preference values? ()
    A

    RIP is preferred over OSPF external routes

    B

    Direct, local and static routes have the same preference value

    C

    OSPF's preference value is lower than BGP

    D

    OSPF has a single preference value for both internal and external routes


    正确答案: D,C
    解析: 暂无解析

  • 第22题:

    多选题
    Which two statements are true regarding interface properties? ()
    A

    MTU and speed must be configured under each unit.

    B

    Physical parameters such as MTU, duplex mode, and speed are configured under the interface name.

    C

    IP and IPv6 addresses are configured under a unit-number.

    D

    DLCI numbers, VPI/VCI values, and VLAN tags are physical parameters.


    正确答案: D,B
    解析: 暂无解析

  • 第23题:

    多选题
    Which two statements are true regarding the starting of the database instance using the following command?() SQL>STARTUP UPGRADE
    A

    It enables all system triggers.

    B

    It allows only SYSDBA connections.

    C

    It ensures that all job queues remain active during the upgrade process.

    D

    It sets system initialization parameters to specific values that are required to enable database upgrade scripts to be run.


    正确答案: B,D
    解析: 暂无解析

  • 第24题:

    多选题
    Which two statements are true regarding high-availability chassis clustering?()
    A

    A chassis cluster consists of two devices.

    B

    A chassis cluster consists of two or more devices.

    C

    Devices participating in a chassis cluster can be different models.

    D

    Devices participating in a chassis cluster must be the same models


    正确答案: C,B
    解析: 暂无解析