There is no sizeof operator in java. How can I find size of an object in java?
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/757300/programatically-calculate-memory-occupied-by-a-java-object-including-objects-it-r">Programatically calculate memory occupied by a Java Object including objects it references</a><br>
  <a href="http://stackoverflow.com/questions/52353/in-java-what-is-the-best-way-to-determine-the-size-of-an-object">In Java, what is the best way to determine the size of an object?</a>  </p>
</blockquote>



<p>Hi</p>

<p>There is no sizeof operator in java ..
But how can i know the size of an object in java?
Thanks</p>
