title: Are the private members of superClass inherited by a subClass... Java?
body: <p>I have gone through this:</p>
  
  <p><a href="https://stackoverflow.com/questions/4716040/does-subclasses-inherit-private-fields">Do subclasses inherit private fields?</a></p>
  
  <p>But I'm still confused...</p>
  
  <p>I'm talking about inheriting only and not accessing. I know that they aren't visible out side class.</p>
  
  <p>But does the subclass' object has it's own copies of those private members in super class?</p>
  
  <p>For example...</p>
  
  <pre><code>class Base {
      private int i;
  }
  
  class Derived extends Base {
      int j;
  }
  </code></pre>
  
  <p>Now, </p>
  
  <pre><code>Base b = new Base();
  Derived d = new Derived();
  </code></pre>
  
  <p>size of int is 4</p>
  
  <p>Now,</p>
  
  <p>Will the size of b be 4 and size of d be 8</p>
  
  <p>or </p>
  
  <p>size of d will also be 4 only ?</p>
  
  <p>Of course I'm talking about the objects on the heap when I say b and d and not the references.</p>
  
  <p>UPDATE: I just read in SCJP Book of Kathy Sierra &amp; Bert... It says that they are NOT inherited.... I posted this update since still there are bunch of people saying yes...</p>