Computer Science, asked by rekhasavadatti06, 7 months ago

Java Week 3: Q5
Complete the code segment to swap two numbers using call by object reference.
Select the language for this assignment Java ​

Answers

Answered by waiznaveed20
1

Answer:

Yes and no. Java never passes by reference, and your way is one workaround. But yet you create a class just to swap two integers. Instead, you can create an int wra

Similar questions