🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Java Multithreading: all 10 questions

Quiz: Java Multithreading · Question 2 of 10

What do all threads of a process share?

What do all threads of a process share?

  1. A.Their stacks
  2. B.The heap
  3. C.Their program counters
  4. D.Nothing
Answer & explanation

Correct answer: The heap

Each thread has its own stack, but the heap (objects) is shared.

Can you get the rest right without peeking?

Take the timed Quiz: Java Multithreading quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →