多选题Which two statements are true?()AIt is possible for more than two threads to deadlock at once.BThe JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.CDeadlocked threads release once their sleep() method's sleep du

题目
多选题
Which two statements are true?()
A

It is possible for more than two threads to deadlock at once.

B

The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.

C

Deadlocked threads release once their sleep() method's sleep duration has expired.

D

Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.

E

It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.

F

If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by inserting invocations of Thread.yield().


相似考题
参考答案和解析
正确答案: F,E
解析: 暂无解析
更多“多选题Which two statements are true?()AIt is possible for more than two threads to deadlock at once.BThe JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.CDeadlocked threads release once their sleep() method's sleep du”相关问题
  • 第1题:

    public class Threads2 implements Runnable {  public void nun() {  System.out.println(”run.”);  throw new RuntimeException(”Problem”);  }  public static void main(String[] args) {  Thread t = new Thread(new Threads2());  t.start();  System.out.println(”End of method.”);  }  }  Which two can be results?()

    • A、 java.lang.RuntimeException: Problem
    • B、 run.    java.lang.RuntimeException: Problem
    • C、 End of method.    java.lang.RuntimeException: Problem
    • D、 End of method.      run.      java.lang.RuntimeException: Problem
    • E、 run.    java.lang.RuntimeException: Problem     End of method.

    正确答案:D,E

  • 第2题:

    Which of the following best describes Simultaneous Multi-threading (SMT)?()

    • A、A POWER5 microprocessor feature that allocates two processors to each application
    • B、A Workload Manager feature that allows two processing threads to be executing on a single processor
    • C、An AIX v5.2 feature that allows two processing threads to be executing on a single processor concurrently
    • D、A POWER5 microprocessor feature that allows two processing threads to be executing on a single processor concurrently

    正确答案:D

  • 第3题:

    Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()

    • A、When using versions of Java technology earlier than 5.0.
    • B、When sharing a StringBuffer among multiple threads.
    • C、When using the java.io class StringBufferInputStream.
    • D、When you plan to reuse the StringBuffer to build more than one string.

    正确答案:A,B

  • 第4题:

    Which two statements are true?()

    • A、It is possible for more than two threads to deadlock at once.
    • B、The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.
    • C、Deadlocked threads release once their sleep() method's sleep duration has expired.
    • D、Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.
    • E、It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.
    • F、If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by inserting invocations of Thread.yield().

    正确答案:A,F

  • 第5题:

    Which statement is true?()

    • A、A class’s finalize() method CANNOT be invoked explicitly.
    • B、super.finalize() is called implicitly by any overriding finalize() method.
    • C、The finalize() method for a given object is called no more than once by the garbage collector.
    • D、The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.

    正确答案:C

  • 第6题:

    Which of the following BEST describes the function of hyperthreading support within a CPU?()

    • A、Allows the core to create a separate space to process threads
    • B、Allows the processor to handle multiple threads per core
    • C、Allows the core to shift to a higher clock speed based on thread count
    • D、Allows the processor to reject certain threads to increase performance

    正确答案:B

  • 第7题:

    多选题
    Which two statements are true about hierarchical architecture? ()(Choose two.)
    A

    You can assign a logical interface to multiple zones.

    B

    You cannot assign a logical interface to multiple zones.

    C

    You can assign a logical interface to multiple routing instances.

    D

    You cannot assign a logical interface to multiple routing instances.


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

  • 第8题:

    多选题
    public class Threads2 implements Runnable {  public void nun() {  System.out.println(”run.”);  throw new RuntimeException(”Problem”);  }  public static void main(String[] args) {  Thread t = new Thread(new Threads2());  t.start();  System.out.println(”End of method.”);  }  }  Which two can be results?()
    A

    java.lang.RuntimeException: Problem

    B

    run.    java.lang.RuntimeException: Problem

    C

    End of method.    java.lang.RuntimeException: Problem

    D

    End of method.      run.      java.lang.RuntimeException: Problem

    E

    run.    java.lang.RuntimeException: Problem     End of method.


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

  • 第9题:

    单选题
    Which statement is true?()
    A

    A class’s finalize() method CANNOT be invoked explicitly.

    B

    super.finalize() is called implicitly by any overriding finalize() method.

    C

    The finalize() method for a given object is called no more than once by the garbage collector.

    D

    The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.


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

  • 第10题:

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

  • 第11题:

    单选题
    Which of the following best describes Simultaneous Multi-threading (SMT)?()
    A

    A POWER5 microprocessor feature that allocates two processors to each application

    B

    A Workload Manager feature that allows two processing threads to be executing on a single processor

    C

    An AIX v5.2 feature that allows two processing threads to be executing on a single processor concurrently

    D

    A POWER5 microprocessor feature that allows two processing threads to be executing on a single processor concurrently


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

  • 第12题:

    多选题
    Which two statements are true about the primary key constraint in a table? ()
    A

    It is not possible to disable the primary key constraint.

    B

    It is possible to have more than one primary key constraint in a single table.

    C

    The primary key constraint can be referred by only one foreign key constraint.

    D

    The primary key constraint can be imposed by combining more than one column.

    E

    The non-deferrable primary key constraint creates an unique index on the primary key column if it is not already indexed.


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

  • 第13题:

    Which two of statements are true?()

    • A、It is possible to synchronize static methods.
    • B、When a thread has yielded as a result of yield(), it releases its locks.
    • C、When a thread is sleeping as a result of sleep(), it releases its locks.
    • D、The Object.wait() method can be invoked only from a synchronized context.
    • E、The Thread.sleep() method can be invoked only from a synchronized context.
    • F、When the thread scheduler receives a notify() request, and notifies a thread, that thread immediately releases its lock.

    正确答案:A,D

  • 第14题:

    Which two statements are true about hierarchical architecture? ()(Choose two.)

    • A、You can assign a logical interface to multiple zones.
    • B、You cannot assign a logical interface to multiple zones.
    • C、You can assign a logical interface to multiple routing instances.
    • D、You cannot assign a logical interface to multiple routing instances.

    正确答案:B,D

  • 第15题:

    Which two statements are true?()

    • A、It is possible for more than two threads to deadlock at once.
    • B、The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.
    • C、Deadlocked threads release once their sleep() method’s sleep duration has expired.
    • D、Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.
    • E、It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.
    • F、If a piece of code is capable of deadlocking, you cannot eliminate the possibility ofdeadlocking by insertinginvocations of Thread.yield().

    正确答案:A,F

  • 第16题:

    Which two statements are true regarding transactions in an Oracle database()

    • A、Multiple transactions can use the same undo segment.
    • B、A transaction is assigned an undo segment when it is started.
    • C、More than one transaction cannot share the same extent in the undo tablespace.
    • D、The transactions use system undo segment to store undo data if all the segments in the undo tablespaceare used.

    正确答案:A,B

  • 第17题:

    Your application uses two threads, named threadOne and threadTwo. You need to modify the code to prevent the execution of threadOne until threadTwo completes execution. What should you do?()

    • A、 Configure threadOne to run at a lower priority.
    • B、 Configure threadTwo to run at a higher priority.
    • C、 Use a WaitCallback delegate to synchronize the threads.
    • D、 Call the Sleep method of threadOne. 
    • E、 Call the SpinLock method of threadOne.

    正确答案:C

  • 第18题:

    单选题
    A double male coupling is one that().
    A

    has left hand twist

    B

    has inside threads on both ends

    C

    has outside threads on both ends

    D

    takes two men to operate


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

  • 第19题:

    多选题
    Which two are true?()
    A

    A finalizer may NOT be invoked explicitly.

    B

    The finalize method declared in class Object takes no action.

    C

    super.finalize()is called implicitly by any over riding finalize method.

    D

    The finalize method for a given objec twill be called no more than once by the garbage collector.

    E

    The order in which finalize will be called on two objects is based on the order in which the two objects became finalizable.


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

  • 第20题:

    多选题
    Which two of statements are true?()
    A

    It is possible to synchronize static methods.

    B

    When a thread has yielded as a result of yield(), it releases its locks.

    C

    When a thread is sleeping as a result of sleep(), it releases its locks.

    D

    The Object.wait() method can be invoked only from a synchronized context.

    E

    The Thread.sleep() method can be invoked only from a synchronized context.

    F

    When the thread scheduler receives a notify() request, and notifies a thread, that thread immediately releases its lock.


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

  • 第21题:

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

    It is possible for more than two threads to deadlock at once.

    B

    The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.

    C

    Deadlocked threads release once their sleep() method's sleep duration has expired.

    D

    Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.

    E

    It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.

    F

    If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by inserting invocations of Thread.yield().


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

  • 第22题:

    多选题
    Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()
    A

    When using versions of Java technology earlier than 5.0.

    B

    When sharing a StringBuffer among multiple threads.

    C

    When using the java.io class StringBufferInputStream.

    D

    When you plan to reuse the StringBuffer to build more than one string.


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

  • 第23题:

    单选题
    Your application uses two threads, named threadOne and threadTwo. You need to modify the code to prevent the execution of threadOne until threadTwo completes execution. What should you do?()
    A

     Configure threadOne to run at a lower priority.

    B

     Configure threadTwo to run at a higher priority.

    C

     Use a WaitCallback delegate to synchronize the threads.

    D

     Call the Sleep method of threadOne. 

    E

     Call the SpinLock method of threadOne.


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

  • 第24题:

    多选题
    Which two statements are true about the duplexing of the backups taken by RMAN? ()(Choose two.)
    A

    It's only supported for the backups performed on the tape

    B

    It is not supported for backup operations that produce image copies

    C

    Duplex backups need a parallelism for the device to be equal to number of copies

    D

    Duplex backups can be performed to either disk or tape, but cannot be performed on tape and disk simultaneously


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