java - What's the difference between ... - Stack Overflow
https://stackoverflow.com/questions/11435613/whats-the-difference-between-stackoverflowerror-and-outofmemoryerror
WEBJul 11, 2012 · StackOverflowError happens when you execute too many methods one inside another (for example with an infinite recursion), which is limited by the size of the stack. OutOfMemoryError happens when the JVM runs out of space to allocate new objects, which are allocated on the heap. answered Jul 11, 2012 at 15:07. vainolo.
DA: 23 PA: 96 MOZ Rank: 31 Up or Down: Up