@Java intentionally sacrifices flexibility to gain safety and predictability.
" Java protects variable ownership.
You may mutate objects if explicitly shared,
but you may never rebind someone else’s variable. "
💡@Java is strictly & exclusively a pass-by-value language.
All method parameters in Java are passed by value.
The value passed is:
🔹the actual data (for primitives), or
🔹a reference value (for objects)
Java never passes variables, memory locations, or references themselves.