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 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