As Norm said, you can't do this with Java as the language isn't intended for this kind of low level memory management. More accurately, you can but shouldn't.

There are two workarounds. You can...