How to effectively determine the size of a Date object in my memory?
Initially I went through this link which talks about 9 bytes for a date object..
I was trying to find it out when I found this link, where it talks about 32 bytes!!!! for a date object in memory.
Kindly help.
Reason for thinking on these lines: I am loading millions of objects of a certain class into memory, for some computation. One of the variables in that class is a Date object. I can store the value as a long, but that would require minor quirks in the code. I am thinking on keeping the memory footprint to the least value possible. To do that, I need to know the exact memory requirements in each case to take a call on the same.