3 ms·Java does do escape analysis to allocate certain things on the stack.by Skinney 8y agoJava does do escape analysis to allocate certain things on the stack.