1. You are passing a reference of object v to the method "second".
2. You are setting its "i" member variable to 20
3. You are setting v reference to a new reference, but remember that eveything in
java is passed by value. So even if you assign v to a new reference, it won't change outside the method.
4. In main, after calling "second", v's reference is still the same, so the ouput is 20.
You can try to check v's reference before and after calling "second", with System.out.println(v)