This is a discussion on Difference between exception and error within the Java Programming forums, part of the Software Development category; Difference between exception and error The exception class defines mild error conditions that your program encounters. Ex: Arithmetic Exception, FilenotFound ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Difference between exception and error The exception class defines mild error conditions that your program encounters. Ex: Arithmetic Exception, FilenotFound exception Exceptions can occur when -- try to open the file, which does not exist -- the network connection is disrupted -- operands being manipulated are out of prescribed ranges -- the class file you are interested in loading is missing The error class defines serious error conditions that you should not attempt to recover from. In most cases it is advisable to let the program terminate when such an error is encountered. Ex: Running out of memory error, Stack overflow error.
__________________ J.Vijayanand |
| Sponsored Links |
| |||
| Hi, When u have doubts whether the value is there or file exists or record exists.. in these situations u can get exception, U have to use try,catch block to handle the exception.. Sometype of exceptions are Arithmetic exception, NumberFormatException, ArrayIndexOutOfBoundException,FileNotFoundExceptio n etc... MeanWhile the error is the one which u get by assigning character value to integer (cannot convert char to int datatype),semicolon missing,Indefinite for loop these are the mistake done by the programmer.. These leads to error.. |
| |||
| exception error means handle error. exception are use handle error using catch and throw . error means some thing happening wrong in program. __________________________________________________ _ web design company free templates |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error: command line error MIDL1001 : cannot open input file wincodec.idl midl | Mramesh | C# Programming | 0 | 02-18-2008 10:07 PM |
| Difference between adhoc testing and error guessing? | Shanthi | Software Testing | 1 | 11-16-2007 03:36 AM |
| How can we Handle Exception in VB.Net? | anbuchezhians | VB.NET Programming | 2 | 09-10-2007 04:19 AM |
| difference between error and an exception? | Arun | Java Programming | 4 | 08-18-2007 03:58 AM |
| Can u Explain Exception Handling Techniques in ASP.NET 2005 using error events? | Archer | ASP and ASP.NET Programming | 1 | 07-25-2007 02:19 AM |