Direct memory is faster when performing I / O because it does not allow data to be copied. However, for 95% of the applications, you will not notice the difference.
, , POJO . ( ). GC, ( ) , . , .
Java ( , ByteBuffer?), , (, [])?
, [], int, / , .
, POJO, .
.. ?
GC. GC .
BTW: , , Eden, , , . .