Tag Archives: autoboxing

Java: Passing Variables into Methods

Java use pass-by-value semantics, instead of pass-by-reference, when passing variables to methods. This means that Java copies the variable values used by the caller to pass them to the method. If the variable has a primitive type, the value of the … Continue reading

Posted in Java | Tagged , , , | Leave a comment