Java Multithreading: 17 MCQs
All 17 multiple-choice questions from this kit, free and with no sign-up.
Warm-up · 6 questions
Q1. What is a thread in Java?
BeginnerAnswers and explanations are in the Veda app.
Q2. Which of the following is the correct way to create a thread by implementing an interface?
BeginnerAnswers and explanations are in the Veda app.
Q3. Which method is called to start a thread's execution?
BeginnerAnswers and explanations are in the Veda app.
Q4. What is the purpose of the run() method in a thread?
BeginnerAnswers and explanations are in the Veda app.
Q5. Which of the following is a benefit of multithreading?
BeginnerAnswers and explanations are in the Veda app.
Q6. The start() method can be called multiple times on the same thread object.
BeginnerAnswers and explanations are in the Veda app.
Building up · 8 questions
Q7. What is the default priority of a thread in Java?
IntermediateAnswers and explanations are in the Veda app.
Q8. Which method causes the currently executing thread to pause temporarily and allow other threads to execute?
IntermediateAnswers and explanations are in the Veda app.
Q9. What is the purpose of the join() method?
IntermediateAnswers and explanations are in the Veda app.
Q10. Which keyword is used to make a method or block thread-safe?
IntermediateAnswers and explanations are in the Veda app.
Q11. What is a race condition?
IntermediateAnswers and explanations are in the Veda app.
Q12. Which method is used to interrupt a thread?
IntermediateAnswers and explanations are in the Veda app.
Q13. Which of the following is NOT a thread state in Java?
IntermediateAnswers and explanations are in the Veda app.
Q14. Synchronization is used to prevent race conditions.
IntermediateAnswers and explanations are in the Veda app.
Topper level · 3 questions
Q15. What is the state of a thread when it is waiting for a monitor lock?
AdvancedAnswers and explanations are in the Veda app.
Q16. What is the purpose of the volatile keyword?
AdvancedAnswers and explanations are in the Veda app.
Q17. What is a deadlock?
AdvancedAnswers and explanations are in the Veda app.
Your notes can be a kit like these
Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free to start, in more than 40 languages.
- Chapter notes
- Flashcards
- Practice MCQs
- Scored tests
- Paper Solver
Get Veda free See what students get
Free to start · Android app and web · More than 40 languages