This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Exceptions in java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Exceptions in java" Watch "Exceptions in java" New topic
Author

Exceptions in java

anish reddy
Ranch Hand

Joined: Apr 19, 2008
Posts: 72
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

Joined: Jul 08, 2003
Posts: 24054
    
  13

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?


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Exceptions in java
 
Similar Threads
Diff. b/w Tomcat and Java Web Server
reserved and keywords
diff between callable statement and batch updates
differnce between filter and requestprocessor
applet-urgent