For example, if parameters are passed by value (even a reference) then how can we do something like this in java...
public void switchP(Pointer p1, Pointer p2){
p2 = p1;
}
And have it reflect back in main? Obviously this won't work because the p1 and p2 addresses are created on the stack and thus disappear when the method returns.