title: Java - Parameter and Enhanced For Loop copy issue
body: <p>assume i have code like this;</p>
  
  <pre><code>public void insert(Student[] stus)
  {
      int count = 0;
      for(Student s: stus)
      {
      s.setId( bla bla);
      stus[count].setId(bla bla) // is this line needed?
      count++;
      }
  }
  </code></pre>
  
  <p>So if i change anything on s from enhanced for loop, can i see the change in stus array also? How does enhanced for loop copy works in parameters or other things etc?</p>