Every thread starts executing with a priority of 5(True/False). : Questions « Thread « SCJP
Java Source And Data Type
7.10.15.Every thread starts executing with a priority of 5(True/False).
What is the output(Runnable interface and thread)?
Answer: Runnable interface and thread
For the following code, all three threads will execute concurrently, taking time-sliced turns in the CPU(True/False).
Answer: Thread and CPU time
A thread can call the yield() method on the second thread to make a second thread ineligible for execution (True/False).
Answer: thread yield method
Which one of the following statements is correct?
Answer: thread and priority
Can you notify Thread1 in among 10 waiting threads so that it alone moves from the Waiting state to the Ready state?
Answer: thread and notify
What is the output
Answer: thread and run method
A Java monitor class must either extend Thread or implement Runnable(True/False).
Answer: monitor class
Every thread starts executing with a priority of 5(True/False).
Answer: thread and priority 5
Threads inherit their priority from their parent thread(True/False).
Answer: thread priority and inheritance
Threads are guaranteed to run with the priority set by setPriority() method(True/False).
Answer: set priority
Thread priority is an integer ranging from 1 to 100(True/False).
Answer: priority range
How to start the following thread
Answer: starting a thread
Which of the following methods are static methods of the Thread class?
Answer: static thread method
Which of the following statements is true after an application executes the following line:
Answer: thread priority
Which of the following statements about the wait method from Object class are true?
Answer: wait and object
Which of the following methods are instance not-deprecated methods of the Thread class?
Answer: deprecated thread methods
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.