¡@

Home 

java Programming Glossary: lotsofints

Size of a byte in memory - Java

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

two types each with 80 members LotsOfBytes has 80 bytes LotsOfInts has 80 ints. We build lots of them make sure they're not GC'd.. byte e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef class LotsOfInts int a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af int b0 b1.. throws Exception LotsOfBytes first new LotsOfBytes SIZE LotsOfInts second new LotsOfInts SIZE System.gc long startMem getMemory..