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
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