You can write Java code to skip GC and manage memory by yourself. Like C++
<a href="http:&#x2F;&#x2F;www.mkyong.com&#x2F;java&#x2F;java-write-directly-to-memory&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.mkyong.com&#x2F;java&#x2F;java-write-directly-to-memory&#x2F;</a>