Re: Difference between exception and error 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.. |