Explain the Java memory model.

Technical