Java isn't one of them, at least until Valhalla comes along.
Still there are Java APIs for off GC heap allocation, which bypass that limitation.