Pass By Value and Pass By Reference

1.1  Pass by Value

Pass by variable means Pass by copy of the variable

1.2  Pass by Reference

Passing the copy of reference variable to the method. In other words, both the caller and called method will now have identical copies of the exact( not a copy ) object on the heap.