title: How to print address of a variable in Java
body: <p>As an address of a variable (i.e. int a) in C can be obtained by <code>&amp;a</code>. </p>
  
  <p>How can this be done in Java? For Eg. The elements of a linked list are non-contiguous. How can we print the address of the elements of a linked list created using the Collections Framework?</p>
  
  <p>If the above thing is not possible, how can we show that the elements of an array are contiguous whereas that of a linked list are not?</p>