Skip to content
Sharp

Java Threading · interview question

In a distributed store, where must the final inventory correctness rule live?

Multiple choiceHardchapter-15-curatedpremiumjava-threadingrace-conditions
Choose one answer
Answer and explanation

Correct answer

B. At the shared truth boundary, such as the database or a shared coordination system

Why

Once multiple app instances are involved, process-local coordination is not enough. The final invariant must be enforced where all contenders meet, usually the database or another shared system.

Test yourself on Java Threading

A free test with instant, explained results. No account needed.

Start free test
All Java Threading questions →