title: When will JAVA STACK throw OOM Error instead of SOF Error, in STACK?
body: <p>I read that both OutOfMemoryError and StackOverFlowError can happen in stack.
  But I wonder when will OOM be thrown in stack?</p>
  <p>Is it thrown when creating new object in stack? Then I guess this new object does not belong to a stack frame, otherwise SOF will be thrown.</p>
  <p>Thank you very much for answering. I searched on google but did not find a related answer.</p>
  <p>I'm very sorry for previous unclear abreviations!!</p>