Thread Confinement
So when an object is confined to a thread, no other thread can have access to it? No, it’s the other way around: if you ensure that no other thread has access to an object, then that object is said to be confined to a single thread. There’s no language- or JVM-level mechanism that confines …