Possible Duplicate:
In Java, what is the best way to determine the size of an object?
If I have a class like:
Class A{
B b = new B();
int y;
int x;
}
Class B{
double x;
double y;
}
What will be the size of an object of Class A on a 32 bit VM/machine?