Can you write a swap routine in Java, or in any other language with only call-by-sharing parameters?

Question:

Can you write a swap routine in Java, or in any other language with only call-by-sharing parameters? What exactly should swap do in such a language?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: