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 are the ways to create a thread in Java, and what's the difference between calling start() and run()?JuniorWhat is a race condition, and what tools does Java give you to protect against it?JuniorWhy do we need thread pools, and how do you work with ExecutorService?JuniorНесколько потоков одновременно делают counter++ над общей переменной, и в итоге значение получается меньше ожидаемого. Объясните, что именно происходит на уровне процессора и памяти, и какими способами это можно исправить — чем они отличаются внутри.Mid-level