File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exceptions in java

 
anish reddy
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to know the exact differnce between out of memory exception and
stack overflow exception.as per my idea one is thrown by jvm and other is by application.i want to know in a more detailed manner whats the differnce between above two.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, one indicates that memory is full (there are too many objects in memory) and the other indicates that a thread's stack has overflowed (a method has called a method which called a method which called a method.... too many times.) These are two rather different things, yes?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic