How to check how much memory is being used by an object

How to check how much memory is being used by an object?Like we have sizeof operator in Cplz tell me ASAP.Thanx in advance
[150 byte] By [amit_khoslaa] at [2007-10-3 4:53:28]
# 1
It sounds a bit rude to ask for something ASAP. http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/Instrumentation.html#getObjectSize(java.lang.Object)
kajbja at 2007-7-14 22:58:19 > top of Java-index,Java Essentials,New To Java...
# 2
Sorry,Thanx a lot.I will try to improve my english.& try to b more polite Thanx for both1) u helped me2) u also told that the language is to be improvedthanx a lot
amit_khoslaa at 2007-7-14 22:58:19 > top of Java-index,Java Essentials,New To Java...
# 3

> 2) u also told that the language is to be improved

I just wanted to warn you that asking questions and saying that it's urgent or that you need something ASAP can be a bit rude since it only is urgent to you and not to us. All users of the forum wants their questions to be answered as soon as possible so you don't have to say that.

Good luck

Kaj

kajbja at 2007-7-14 22:58:19 > top of Java-index,Java Essentials,New To Java...
# 4
Some are not willing to answer if there is ASAP or URGENT in the original post. So using them is even contraproductive.
BIJ001a at 2007-7-14 22:58:19 > top of Java-index,Java Essentials,New To Java...