title: Passing Argument in Java
body: <p>New to Java here, please help.  How arguments are passed in java?  Why am I unable to change argument value in the calling method from within called method?</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>public class PassTest {
      public static void changeInt(int value)
      {
           value=55;
      }
  
      int val;
      val=11;
      changeInt(val);
      System.out.println("Int value is:" + val);// calling modifier changeInt 
  }
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <p><code>Int value is: 11</code></p>
  
  <p>why it is not 55..?</p>