Monthly Archives: August 2011

Java is “Pass by Value”

Java manipulates objects ‘by reference’, but it passes object references to methods ‘by value’. Take the badSwap() method for example: When badSwap() returns, the variables passed as arguments will still hold their original values. The method will also fail if … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment