Is it correct to assume a Java object only takes up the 8 bytes for the object reference as long as all it's members are set to null
or does the definition of members already use up space in the instance for some reason?
In other words, if I have a large collection of objects that I want to be space efficient, can I count on leaving unused members set to null
for reducing memory footprint?