In non RT java this is nearly impossible. The best way is to use a specific allocated off memory byte buffer and zero it once done. But GC&#x2F;deallocation and JIT compilation will fight your zeroing attempts, and it can easily break existing code :(