A) Thread
B) Threadable
C) Run
D) Runnable
Correct Answer
verified
Multiple Choice
A) firstThread.run() ;
B) firstThread.start() ;
C) run() ;
D) start() ;
Correct Answer
verified
Multiple Choice
A) ThreadInterruptedException
B) ThreadException
C) ThreadSleepException
D) InterruptedException
Correct Answer
verified
Multiple Choice
A) I
B) III
C) I and II
D) II and III
Correct Answer
verified
Multiple Choice
A) Thread
B) Runnable
C) MyRunnable
D) Threadable
Correct Answer
verified
Multiple Choice
A) InterruptException
B) IllegalMonitorStateException
C) ThreadException
D) ThreadTerminatedException
Correct Answer
verified
Multiple Choice
A) A compiler error.
B) A checked exception is thrown.
C) The unlock method call will block.
D) Nothing, the program executes normally.
Correct Answer
verified
Multiple Choice
A) InterruptedException
B) SleepException
C) lock
D) SignalException
Correct Answer
verified
Multiple Choice
A) I
B) II
C) I and II
D) II and III
Correct Answer
verified
Multiple Choice
A) I
B) II
C) II and III
D) I and II
Correct Answer
verified
Multiple Choice
A) The balance could be zero or positive.
B) The balance is zero.
C) The balance could be zero or negative.
D) The balance is positive.
Correct Answer
verified
Multiple Choice
A) II
B) III
C) I and II
D) II and III
Correct Answer
verified
Multiple Choice
A) IOException
B) IllegalStateMonitorException
C) InterruptedException
D) SleepException
Correct Answer
verified
Multiple Choice
A) When the thread is sleeping.
B) When the thread called await on different condition object.
C) When two or more threads are waiting.
D) When the thread called await on the same condition object.
Correct Answer
verified
Multiple Choice
A) synchronized code stops the race condition, locks do not.
B) synchronized is a single lock, but we may have many ReentrantLock objects.
C) The two are exactly the same.
D) The two concepts are not related.
Correct Answer
verified
Multiple Choice
A) run
B) lock
C) unlock
D) signalAll
Correct Answer
verified
Multiple Choice
A) InterruptException
B) InterruptedException
C) ThreadException
D) ThreadTerminatedException
Correct Answer
verified
Multiple Choice
A) The bank account balances may no longer be correctly updated.
B) The printouts may become intermingled.
C) The printouts may no longer display the correct balances.
D) All of the above.
Correct Answer
verified
Multiple Choice
A) Condition objects
B) Embedded systems
C) Exceptions
D) Race conditions
Correct Answer
verified
Multiple Choice
A) I
B) II
C) I and II
D) II and III
Correct Answer
verified
Showing 1 - 20 of 82
Related Exams