title: Is there a difference calling a function with a simple return over just doing the check?
body: <p>Is there <em>any</em> difference between doing</p>
  
  <p><code>if (numberOfEntries &gt;= array.length) {do stuff}; // Check if array is full directly</code></p>
  
  <p>over doing something like</p>
  
  <pre><code>private boolean isArrayFull(){ 
      return numberOfEntries &gt;= array.length;
  }
  
  if (isArrayFull()) {do stuff}; // Call a check function
  </code></pre>
  
  <p>Over large arrays, many iterations and any other environment of execution, is there any difference to these methods other than readability and code duplication, if I need to check if the array is full anywhere else?</p>