11. |
Which of these method of Thread class is used to Suspend a thread for a period of time?
|
||||||||
Answer:
Option (a) |
12. |
Which method of predefined class Thread is used to check whether current thread being checked is still running?
|
||||||||
Answer:
Option (a) |
13. |
Which of these keywords are used to implement synchronization?
|
||||||||
Answer:
Option (d) |
14. |
Which of the interface contains all the methods used for handling thread related operations in Java?
|
||||||||
Answer:
Option (a) |
15. |
Which of these class is used to make a thread?
|
||||||||
Answer:
Option (c) |
16. |
Which of this interface is implemented by Thread class?
|
||||||||
Answer:
Option (a) |
17. |
What is the name of the method used to start a thread execution?
|
||||||||
Answer:
Option (b) |
18. |
Which two are valid constructors for Thread?
1. Thread(Runnable r, String name) 2. Thread() 3. Thread(int priority) 4. Thread(Runnable r, ThreadGroup g) 5. Thread(Runnable r, int priority)
|
||||||||
Answer:
Option (c) |
19. |
Which two of the following methods are defined in class Thread?
1. start() 2. wait() 3. notify() 4. run() 5. terminate()
|
||||||||
Answer:
Option (a) |
20. |
Which method must be defined by a class implementing the java.lang.Runnable interface?
|
||||||||
Answer:
Option (b) |