title: Class creation performance impact
body: <p>Are there any notable advantages and/or disadvantages, expecially regarding performance,  to replacing</p>
  
  <pre><code>private class MyClass{
      /**
      * Some code here
      **/
  
      private int numberOfPeople();
      private Human[] people;
      private void printPeople(){
          // some code here
      }
  
      /**
      * Some code here
      **/
  }
  </code></pre>
  
  <p>with an inner class like this, that better encapsulates the data:</p>
  
  <pre><code>private class MyClass{
      /**
      * Some code here
      **/
      private class PeopleHandler{
          private int numberOfPeople();
          private Human[] people;
  
          private void printPeople(){
              // some code here
          }
  
          private void doOherStuff{
             // some code here
          }
      }
  
      /**
      * Some code here
      **/
  }
  </code></pre>
  
  <p>I need to know this specifically for Java and Java Android.</p>