Frage im Vorstellungsgespräch bei FDM Group

Is Java pass by reference or pass by value?

Antworten zu Vorstellungsgespräch

Anonym

13. Aug. 2018

Pass by value, however, for people with a background in another language like C++ might have a different understanding of what that means. Regardless, as far as Java itself is concerned, that is the answer.

Anonym

20. März 2019

Primitive types(int, double, long, etc..) are pass by value, and objects(any class that inherits from the Object class) are pass by reference.