title: Java: Class within itself and memory usage(Ex: Simple Binary Tree implementation)?
body: <p>If I make a class, for instance:</p>
  
  <pre><code>class Node
  {
      int myvalue;
      Node myparent;
  }
  </code></pre>
  
  <p>Is the Node "myparent" going to be a reference to a node, or is it going to be a copy of that node? If it is a reference to the node, this means that the amount of memory will be about as much as the total # of Nodes I have (including their values), correct? Or is the Node a copy of a Node, and therefore all Nodes take up as much memory as their depth*(amount of memory a node takes)?</p>