pass by reference in java
<p>I am new to java. I tried to search a lot for my query but could not find. Please help me if you know. I have a function:</p>

<pre><code>boolean func(int a, int b, myclass obj1, myclass2 obj2)
{
    ...
}

   void caller() {
   int a = 0, b=0;
   myclass obj1 = null;
   myclass1 obj2 = null;
   func(a,b,obj1,obj2);
   if (a == 5 &amp;&amp; b ==2)
  {
   ...
 }
}
</code></pre>

<p>what should i do such that all passed variables have the value in caller function which was given by function func?</p>
