title: is it possible to get address on heap of a variable in java?
body: <p>lets say i have this variable :</p>
  
  <pre><code>...
  Somekindofobject var = new Somekindofobject();
  ...
  </code></pre>
  
  <p>and i want to know where var is located on the heap ( by address , like 0x08 and so on),and to print the address out .</p>
  
  <p>is it possible?</p>