File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Error & Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error & Exception " Watch "Error & Exception " New topic
Author

Error & Exception

sreejith panampilly
Ranch Hand

Joined: Jun 15, 2006
Posts: 49
What is the difference between Error and Exception ?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Did you read their respective Javadoc pages? Pretty well documented classes...


[Jess in Action][AskingGoodQuestions]
Surajit Sahu
Greenhorn

Joined: Sep 06, 2006
Posts: 2
Error means something that has gone wrong with your program which we
can not overcome, whereas an exception is for an unusual situation that we will face in a code.So, for example, tack overflow,underflow
are examples of Error, but attempting to read a file and finding it doesn't exist,a divide-by-zero are examples of Exception.So Exception we can handel by putting that part of code which we are anticipating some exception may occur,in try and catch block.But error we can't handel explicitly where as exception we can.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error & Exception