For every method that you call in your thread, it’s like an additional layer that gets added to your thread’s stack. If the total space occupied by these layers exceeds the memory stipulated to that particular thread’s stack, a StackOverFlowError occours !!!!
Regards,
SPS