33.4k views
2 votes
PELASE HURRY
How does passing by reference work in Java?

1 Answer

1 vote

Answer:

Step-by-step explanation:

The Java programming language does not pass objects by reference; it passes object references by value. Because two copies of the same reference refer to the same actual object, changes made through one reference variable are visible through the other.

User Gerald Eersteling
by
7.6k points