Frage im Vorstellungsgespräch bei Infosys

Is Java pass by value or by reference

Antwort im Vorstellungsgespräch

Anonym

7. Sep. 2024

Java is pass by valueJava is pass by value, meaning a copy of the variable is passed to a methodChanges made to the copy inside the method do not affect the original variableHowever, if the variable i...