Why java is said to be pass-by-value ?
Java is strictly pass-by-value. A common misconception exists that parameters in Java are passed by reference. They are not. Parameters are passed by value. Java doesn\'t pass method arguments by reference, it passes them by value i.e. it simply copies the bit pattern holding by the references.