<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>codesurgeon blog forum - Latest Comments in Parameter Passing in Java</title><link>http://codesurgeon.disqus.com/</link><description></description><atom:link href="https://codesurgeon.disqus.com/parameter_passing_in_java_47/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 31 May 2009 09:26:01 -0000</lastBuildDate><item><title>Re: Parameter Passing in Java</title><link>http://www.codesurgeonblog.com/2007/07/parameter-passing-in-java.html#comment-10314493</link><description>&lt;p&gt;In the increment method, aFoo (the reference alone) is passed by value, so if you access the object through it, it's going to change the value of the existing object on the heap. And reference is going to be destructed since it is local to incrementBar.&lt;br&gt;Same doesnt apply to incrementReassignedBar because the local copy is assigned to another local object that is going to be killed soon after method is executed. Great primitive topic most of the devs dont understand :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Burcu Dogan</dc:creator><pubDate>Sun, 31 May 2009 09:26:01 -0000</pubDate></item><item><title>Re: Parameter Passing in Java</title><link>http://www.codesurgeonblog.com/2007/07/parameter-passing-in-java.html#comment-91591</link><description>&lt;p&gt;You might want to take a peek at&lt;/p&gt;&lt;p&gt;&lt;a href="http://javadude.com/articles/passbyvalue.htm" rel="nofollow noopener" target="_blank" title="http://javadude.com/articles/passbyvalue.htm"&gt;http://javadude.com/article...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Hope this helps clear things up a bit...&lt;br&gt;-- Scott&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott Stanchfield</dc:creator><pubDate>Mon, 21 Jan 2008 17:10:43 -0000</pubDate></item></channel></rss>