In Java, is there a way to know that a StackOverflow error or OutOfMemory exception may happen soon?
StackOverflow
OutOfMemory
The OutOfMemory exception m
You should never see a StackOverflow exception if your application is designed and implemented correctly!
Generally, if you get a StackOverflow exception then it's a sign that there's a bug in your recursion code.