I have a little question about sizo of objects in the memory.
How big would be a difference between this
class a {
b some = new b[1000];
class b{
int a;
int ouch;
}
}
and this
class a {
b some = new b[1000];
}
class b{
int a;
int ouch;
}
and how much memory would eat this:
byte[][] by = new byte[1000000][1];
I tried it on JVM 1.5 beta3 and it looked horrible.
basically 4 MB + 15 MB