What is the memory consumption of an object in Java?
Mindprod points out that this is not a straightforward question to answer: A JVM is free to store data any way it pleases internally, big or little endian, with any amount of padding or overhead, though primitives must behave as if they had the official sizes. For example, the JVM or native compiler might decide … Read more