多选题Given that b and c refer to instances of wrapper classes, which two statements are true?()Ab.equals(b) returns true.Bb.equals(c) returns the same result as b == c.Cb.eqials(c) can return false even if c.equals(b) returns true.Db.equals(c) throws an exc

题目
多选题
Given that b and c refer to instances of wrapper classes, which two statements are true?()
A

b.equals(b) returns true.

B

b.equals(c) returns the same result as b == c.

C

b.eqials(c) can return false even if c.equals(b) returns true.

D

b.equals(c) throws an exception if b and c are different wrapper types.

E

b.equals(c) returns false if the type of wrapper objects being compared are different.


相似考题
更多“多选题Given that b and c refer to instances of wrapper classes, which two statements are true?()Ab.equals(b) returns true.Bb.equals(c) returns the same result as b == c.Cb.eqials(c) can return false even if c.equals(b) returns true.Db.equals(c) throws an exc”相关问题
  • 第1题:

    Given that b and c refer to instances of wrapper classes, which two statements are true?()

    • A、 b.equals(b) returns true.
    • B、 b.equals(c) returns the same result as b == c.
    • C、 b.eqials(c) can return false even if c.equals(b) returns true.
    • D、 b.equals(c) throws an exception if b and c are different wrapper types.
    • E、 b.equals(c) returns false if the type of wrapper objects being compared are different.

    正确答案:B,C

  • 第2题:

    10. public class MyClass {  11.  12. public Integer startingI;  13. public void methodA() {  14. Integer i = new Integer(25);  15. startingI = i;  16. methodB(i);  17. }  18. private void methodB(Integer i2) {  19. i2 = i2.intValue();  20.  21. }  22. }  If methodA is invoked, which two are true at line 20?()

    • A、 i2 == startingI returns true.
    • B、 i2 == startingI returns false.
    • C、 i2.equals(startingI) returns true.
    • D、 i2.equals(startingI) returns false.

    正确答案:B,C

  • 第3题:

    Which four statements correctly describe functions that are available in SQL? ()

    • A、INSTR returns the numeric position of a named character.
    • B、NVL2 returns the first non-null expression in the expression list.
    • C、TRUNCATE rounds the column, expression, or value to n decimal places.
    • D、DECODE translates an expression after comparing it to each search value.
    • E、TRIM trims the heading of trailing characters (or both) from a character string.
    • F、NVL compares two expressions and returns null if they are equal, or the first expression of they are not equal.
    • G、NULLIF compares twp expressions and returns null if they are equal, or the first expression if they are not equal.

    正确答案:A,D,E,G

  • 第4题:

    Identify the two situations in which you use the alert log file in your database to check the details.()

    • A、Running a query on a table returns "ORA-600: Internal Error."
    • B、Inserting a value in a table returns "ORA-01722: invalid number."
    • C、Creating a table returns "ORA-00955: name is already used by an existing object."
    • D、Inserting a value in a table returns "ORA-00001: unique constraint (SYS.PK_TECHP) violated." 
    • E、Inserting a row in a table returns "ORA-00060: deadlock detected while waiting for resource."

    正确答案:A,E

  • 第5题:

    Which two statements are true about standard database auditing()

    • A、DDL statements can be audited.
    • B、Statements that refer to stand-alone procedure can be audited.
    • C、Operations by the users logged on as SYSDBA cannot be audited.
    • D、Only one audit record is ever created for a session per audited statement even though it is executedmore than once.

    正确答案:A,B

  • 第6题:

    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

    正确答案:D,E

  • 第7题:

    多选题
    Which four statements correctly describe functions that are available in SQL? ()
    A

    INSTR returns the numeric position of a named character.

    B

    NVL2 returns the first non-null expression in the expression list.

    C

    TRUNCATE rounds the column, expression, or value to n decimal places.

    D

    DECODE translates an expression after comparing it to each search value.

    E

    TRIM trims the heading of trailing characters (or both) from a character string.

    F

    NVL compares two expressions and returns null if they are equal, or the first expression of they are not equal.

    G

    NULLIF compares twp expressions and returns null if they are equal, or the first expression if they are not equal.


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

  • 第8题:

    多选题
    Which four statements correctly describe functions that are available in SQL? ()
    A

    INSTR returns the numeric position of a named character.

    B

    NVL2 returns the first non-null expression in the expression list.

    C

    TRUNCATE rounds the column, expression, or value to n decimal places.

    D

    DECODE translates an expression after comparing it to each search value.

    E

    TRIM trims the heading or trailing characters (or both) from a character string.

    F

    NVL compares two expressions and returns null if they are equal, or the first expression if they are not equal.

    G

    NULLIF compares two expressions and returns null if they are equal, or the first expression if they are not equal.


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

  • 第9题:

    多选题
    Identify the two situations in which you use the alert log file in your database to check the details.()
    A

    Running a query on a table returns ORA-600: Internal Error.

    B

    Inserting a value in a table returns ORA-01722: invalid number.

    C

    Creating a table returns ORA-00955: name is already used by an existing object.

    D

    Inserting a value in a table returns ORA-00001: unique constraint (SYS.PK_TECHP) violated.

    E

    Inserting a row in a table returns ORA-00060: deadlock detected while waiting for resource.


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

  • 第10题:

    多选题
    Which two statements are true regarding the execution of the correlated subqueries?()
    A

    The nested query executes after the outer query returns the row.

    B

    The nested query executes first and then the outer query executes.

    C

    The outer query executes only once for the result returned by the inner query.

    D

    Each row returned by the outer query is evaluated for the results returned by the inner query.


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

  • 第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


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

  • 第12题:

    多选题
    Given that b and c refer to instances of wrapper classes, which two statements are true?()
    A

    b.equals(b) returns true.

    B

    b.equals(c) returns the same result as b == c.

    C

    b.eqials(c) can return false even if c.equals(b) returns true.

    D

    b.equals(c) throws an exception if b and c are different wrapper types.

    E

    b.equals(c) returns false if the type of wrapper objects being compared are different.


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

  • 第13题:

    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

  • 第14题:

    Which two statements are true about mouse button variables?()

    • A、SYSTEM.MOUSE_BUTTON_PRESSED returns a string. 
    • B、SYSTEM.MOUSE_BUTTON_PRESSED returns a numeric value. 1Z0-132 World Leaders In Certifications Material - Test-king.com 
    • C、A possible value for SYSTEM.MOUSE_BUTTON_MODIFIERS is Control+Alt+Delete. 
    • D、SYSTEM.MOUSE_BUTTON_MODIFIERS can only be references in form-level triggers. 
    • E、SYSTEM.MOUSE_BUTTON_MODIFIERS identifies which special key was pressed in conjunction with the usual mouse button action. 

    正确答案:B,E

  • 第15题:

    Evaluate these two SQL statements: SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY 2 DESC; What is true about them?()

    • A、The two statements produce identical results.
    • B、The second statement returns a syntax error.
    • C、There is no need to specify DESC because the results are sorted in descending order by default.
    • D、The two statements can be made to produce identical results by adding a column alias for the salary column in the second SQL statement.

    正确答案:A

  • 第16题:

    Which statement is true regarding the COALESCE function?()

    • A、It can have a maximum of five expressions in a list 
    • B、It returns the highest NOT NULL value in the list for all rows 
    • C、It requires that all expressions in the list must be of the same data type 
    • D、It requires that at least one of the expressions in the list must have a NOT NULL value

    正确答案:C

  • 第17题:

    Which four statements correctly describe functions that are available in SQL? ()

    • A、INSTR returns the numeric position of a named character.
    • B、NVL2 returns the first non-null expression in the expression list.
    • C、TRUNCATE rounds the column, expression, or value to n decimal places.
    • D、DECODE translates an expression after comparing it to each search value.
    • E、TRIM trims the heading or trailing characters (or both) from a character string.
    • F、NVL compares two expressions and returns null if they are equal, or the first expression if they are not equal.
    • G、NULLIF compares two expressions and returns null if they are equal, or the first expression if they are not equal.

    正确答案:A,D,E,G

  • 第18题:

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

  • 第19题:

    多选题
    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
    解析: 暂无解析

  • 第20题:

    多选题
    Which two statements are true regarding partitioning in Mysql?()
    A

    Tables with BLOB and TEXT columns cannot be partitioned

    B

    Partitioning allows easier management of smaller data sets for certain queries

    C

    Partitioning allows different columns to be stored in separate files

    D

    The partitioning expression is an integer or function that returns an integer value or NULL value

    E

    Partitioning is only available for those storage engines that implements it natively


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

  • 第21题:

    多选题
    Assume that country is set for each class.  Given:  10. public class Money {  11. private String country, name;  12. public getCountry() { return country; }  13.}  and:  24. class Yen extends Money {  25. public String getCountry() { return super.country; }  26. }  27.  28. class Euro extends Money {  29. public String getCountry(String timeZone) {  30. return super.getCountry();  31. }  32. }  Which two are correct?()
    A

    Yen returns correct values.

    B

    Euro returns correct values.

    C

    An exception is thrown at runtime.

    D

    Yen and Euro both return correct values.

    E

    Compilation fails because of an error at line 25.

    F

    Compilation fails because of an error at line 30.


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

  • 第22题:

    多选题
    Which two statements are true about mouse button variables?()
    A

    SYSTEM.MOUSE_BUTTON_PRESSED returns a string.

    B

    SYSTEM.MOUSE_BUTTON_PRESSED returns a numeric value. 1Z0-132 World Leaders In Certifications Material - Test-king.com

    C

    A possible value for SYSTEM.MOUSE_BUTTON_MODIFIERS is Control+Alt+Delete.

    D

    SYSTEM.MOUSE_BUTTON_MODIFIERS can only be references in form-level triggers.

    E

    SYSTEM.MOUSE_BUTTON_MODIFIERS identifies which special key was pressed in conjunction with the usual mouse button action.


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

  • 第23题:

    单选题
    Evaluate these two SQL statements: What is true about them?()
    A

    The two statements produce identical results.

    B

    The second statement returns a syntax error.

    C

    There is no need to specify DESC because the results are sorted in descending order by default.

    D

    The two statements can be made to produce identical results by adding a column alias for the salary column in the second SQL statement.


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

  • 第24题:

    多选题
    10. public class MyClass {  11.  12. public Integer startingI;  13. public void methodA() {  14. Integer i = new Integer(25);  15. startingI = i;  16. methodB(i);  17. }  18. private void methodB(Integer i2) {  19. i2 = i2.intValue();  20.  21. }  22. }  If methodA is invoked, which two are true at line 20?()
    A

    i2 == startingI returns true.

    B

    i2 == startingI returns false.

    C

    i2.equals(startingI) returns true.

    D

    i2.equals(startingI) returns false.


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