Back-End/Java_1
[Java] Call by value
리딩리드
2016. 9. 13. 11:03
Call by value
- There is only call by value in java, not call by reference
1. Example
50
50
- The value of data is not changed
2. Another Example
- If we pass object in place of any primitive value, original value will be changed
- This case we are passing object as a value