I am currently working on atomic classes and I am unable to track whether it is “call by value” or “call by reference”. I understand that Java does not allow call by reference and that it is only and only call by value. But in case of atomic classes, it seems to be call by reference. Can you share your thoughts with me?
Share
It’s called pass by value/reference, and it concerns passing arguments to methods.
Atomic classes are no exception to the pass-by-value: