What\'s the difference between StackOverflowError and OutOfMemoryError and how to avoid them in application?
StackOverflowError
OutOfMemoryError