Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
What is a race condition, and what tools does Java give you to protect against it?JuniorOne thread sets a stop flag, and a worker thread checks that flag in a loop, but sometimes the worker never stops. Why does that happen and how do you fix it?Mid-levelWhat is the Java Memory Model, and what is the happens-before relationship? Tell me what guarantees volatile gives and where it isn't enough.Senior