1
可能重複:
In Java, what is the best way to determine the size of an object?估算32位vm上java對象的大小?
如果我有一個類,如:
Class A{
B b = new B();
int y;
int x;
}
Class B{
double x;
double y;
}
會有什麼類的對象的在32位虛擬機的尺寸/機?
許多問題已經在StackOverflow上提出並回答了。請在發佈新問題之前使用搜索,您可能會立即找到您的答案。 – 2011-05-04 18:07:03