Immutable Class in Java.

Published on: 2023 - 9 - 25

Why immutable? why we use record? PHP also has it.

safely passing the same object around

But when do we want it to be mutable and past around?