Beat me to this answer ;) - I presume you can just allocate objects but you have to keep those allocations in check to prevent the JVM from terminating when going out of memory.
Maybe object pooling (which helped performance in old JVM's in the 90s) will make a comeback? ;)