I have been struggling with understanding these 2 java errors. I have read Java docs and some other stack overflow question threads and now I know the basics about these 2 errors. But I have 2 doubts that I have not been able to confirm yet.
- Is the below statement correct or wrong - ?
StackOverflowError
affects a particular Thread of execution where as OutOfMemoryError
affects the entire JVM
- Can
StackOverflowError
causeOutOfMemoryError
to occur? If yes, then in what kind of scenario?
Really appreciate any help here.
Thank you.