As in c++ when accessing std::atomics I can partially partially weaken order guarantees using memory_order_acquire or memory_order_release with std::atomics::load() and std::atomics::store(). Or using std::memory_order_relaxed
My question is: is this possible in java? I mean is there any barrier concept in java?
Please correct me if I'm thinking very wrong.