Skills101
← All practice quizzes

Quiz: Java Multithreading

5 questionsNo time limitPass: 60%+10 XP on first pass

Run tasks at the same time. Thread vs Runnable, the thread life cycle, race conditions and synchronized, AtomicInteger, ExecutorService and the questions interviewers ask.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Which method starts a new thread of execution?

  2. Question 2

    What do all threads of a process share?

  3. Question 3

    Why can count++ give wrong results with two threads?

  4. Question 4

    What does join() do?

  5. Question 5

    Which is a thread-safe Map for heavy concurrent use?