Is Java Pass-by-Value or Pass-by-Reference?
There is a lot of confusion on whether Java uses pass-by-reference or pass-by-value before we even conclude. Let's understand these concepts in detail.
Common jargons 🤓
The method/behavior which calls other method/behavior is caller.
The method/behavior which gets called is callee.
In the below example, main