¡@

Home 

java Programming Glossary: lotsofbytes

Size of a byte in memory - Java

http://stackoverflow.com/questions/229886/size-of-a-byte-in-memory-java

it's useful anyway. It has two types each with 80 members LotsOfBytes has 80 bytes LotsOfInts has 80 ints. We build lots of them make.. make sure they're not GC'd and check memory usage class LotsOfBytes byte a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af byte b0.. public static void main String args throws Exception LotsOfBytes first new LotsOfBytes SIZE LotsOfInts second new LotsOfInts..