Question: Please help with Java test questions, I will post the rest of the question in separate post. Question 6 What Java feature allows multiple tasks
Please help with Java test questions, I will post the rest of the question in separate post.
Question 6
What Java feature allows multiple tasks to be running at the same time?
| a. | multithreading | |
| b. | scheduled tasking | |
| c. | multiprogramming | |
| d. | simultaneous execution |
Question 7
What exception is thrown when a thread is interrupted?
| a. | NoSuchThreadException | |
| b. | ThreadPausedException | |
| c. | ThreadException | |
| d. | InterruptedException |
Question 8
What is the state of a thread object before its start method has been executed?
| a. | Running | |
| b. | Waiting | |
| c. | Runnable | |
| d. | New |
Question 9
What method do you override to provide the code thats executed by a thread?
| a. | start | |
| b. | run | |
| c. | exec | |
| d. | task |
Question 10
Which of the following interfaces can be used to create a thread?
| a. | Runnable | |
| b. | Task | |
| c. | Scheduler | |
| d. | Thread |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
