Content deleted Content added
→Java pass by value: another explanation |
|||
Line 541:
:::No, functions never make a copy of the object they modify. When you pass a reference type to a method in Java, the method can change the object the reference refers to. This is just the same as in any language when two pointers point to the same object. If you think Java is doing something other than pass by value, you horribly confused. -- [[User:Schapel|Schapel]] ([[User talk:Schapel|talk]]) 23:13, 9 December 2010 (UTC)
:::You can see a visual description of what's going on when you pass references to methods [http://www.javaworld.com/javaworld/javaqa/2000-05/03-qa-0526-pass.html here]. -- [[User:Schapel|Schapel]] ([[User talk:Schapel|talk]]) 23:18, 9 December 2010 (UTC)
:::Here's the [http://books.google.com/books?id=W6bomXWB-TYC&pg=PA151&lpg=PA151&dq=%22Some+programmers+%28and+unfortunately+even+some+book+authors%29+claim+that+the+Java+programming+language+uses+call+by+reference+for+objects.%22&source=bl&ots=4rN7WMwptR&sig=VF5drNO_9E43lcJCvbXUEPY-q08&hl=en&ei=7YkBTZqSDI6WsgOkmNWLAw&sa=X&oi=book_result&ct=result&resnum=2&ved=0CBUQ6AEwAQ#v=onepage&q=%22Some%20programmers%20%28and%20unfortunately%20even%20some%20book%20authors%29%20claim%20that%20the%20Java%20programming%20language%20uses%20call%20by%20reference%20for%20objects.%22&f=false description from the Core Java book] I refer to in a citation. -- [[User:Schapel|Schapel]] ([[User talk:Schapel|talk]]) 02:03, 10 December 2010 (UTC)
== "neutrality" is counter to the point ==
|