Java is strictly pass-by-value. which means, when you pass a variable to a method, the method will just make a copy of that varible and use that copy, not the original one!
check this
Java is Pass-by-Value!
原文:http://www.cnblogs.com/miaoz/p/3982853.html