Results 1 to 11 of 11

Thread: difference b/w Exception and Error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Oct 2007
    Answers
    4

    difference b/w Exception and Error

    difference b/w Exception and Error


  2. #2
    Contributing Member
    Join Date
    May 2007
    Answers
    32

    Smile Re: difference b/w Exception and Error

    an exception is caught and recovered where as an error is unrecovered


  3. #3
    Junior Member
    Join Date
    Jan 2007
    Answers
    22

    Re: difference b/w Exception and Error

    Exceptions are usually the things when something is wrong with the code.
    Error is sth which is out of your control , and jvm usually crashes in case of Error so you can't continue the program .


  4. #4
    Contributing Member
    Join Date
    Aug 2007
    Answers
    59

    Re: difference b/w Exception and Error

    error is something wrong in your code and

    exception is wrong part of your code which is already identified
    and you want to bypass that error by showing some message when that error occurs

    you can make any error as exception by handling it properly...

    you can either rewrite a code when an error occurs
    or u can make it as an exception and pass some message when it occurs!!!


  5. #5
    Junior Member
    Join Date
    Oct 2007
    Answers
    1

    Re: difference b/w Exception and Error

    Exceptions are handled by user code while errors are handled by operating systems variable.


  6. #6
    Junior Member
    Join Date
    May 2006
    Answers
    2

    Re: difference b/w Exception and Error

    Exceptions are handled by JVM(i.e JVM know the Exception) but Error can not be handled by JVM. We can't do anything if any Error occure in our code.

    THANKS&REGARDS
    KRIPAL


  7. #7
    Junior Member
    Join Date
    May 2006
    Answers
    2

    Re: difference b/w Exception and Error

    Exceptions are handled by JVM(i.e JVM know the Exception) but Error can not be handled by JVM. We can't do anything if any Error occure in our code.

    THANKS&REGARDS
    KRIPAL


  8. #8
    Junior Member
    Join Date
    Oct 2007
    Answers
    2

    Re: difference b/w Exception and Error

    eror occuers when syntax is worng.
    exception comes when program logic is wrong.


  9. #9
    Junior Member
    Join Date
    Dec 2007
    Answers
    3

    Smile Re: difference b/w Exception and Error

    hai
    Error and exception are both mistake there is some little diffrenence .
    Error occured in complication time. exception occured in running time


  10. #10
    Contributing Member
    Join Date
    Nov 2007
    Answers
    46

    Re: difference b/w Exception and Error

    exception:
    - it can be handled by jvm.
    - it wil be occured in run time.
    error:
    - it can be handled by us.(missing semicolon at the end of statement, that is handled by us)

    - it will be occured at compile time


  11. #11
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: difference b/w Exception and Error

    Errors are the external interrupts that terminate the execution of programme
    ex Running out of memory,Stack overflow

    Exceptions are abnormal, unexpected events or extraordinary
    conditions that may occur at runtime.
    Example: file not found exception, unable to get connection exception..etc..


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact