Answer
volatile: Ensures visibility of changes.
synchronized: Ensures mutual exclusion.
Atomic variables: Lock-free thread-safe operations.
synchronized: Ensures mutual exclusion.
Atomic variables: Lock-free thread-safe operations.