Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Rep Power

    Default diff between error and exception

    what is the diff between and error and exception any one plz list and explain programmatically.

    Thanks in advance

    Harinath Chakrapani

  2. #2
    smantoor is offline Member
    Join Date
    Jun 2007
    Rep Power

    Default Re:Difference between error and exception

    In general error is which nobody can control or guess when it occurs.Exception can be guessed and can be handled.
    In Java Exception and Error are sub class of Throwable.It is differentiated based on the program control.Error such as OutOfMemory Error which no programmer can guess and can handle it.It depends on dynamically based on architectire,OS and server configuration.Where as Exception programmer can handle it and can avoid application's misbehavior.For example if your code is looking for a file which is not available then IOException is thrown.Such instances programmer can guess and can handle it.

Similar Threads

  1. Null pointer exception error
    By brownie_jedi in forum New To Java
    Replies: 3
    Last Post: 03-15-2008, 06:27 AM
  2. Exception Error need help fixing
    By skinnybones in forum New To Java
    Replies: 2
    Last Post: 12-03-2007, 07:14 PM
  3. Replies: 1
    Last Post: 07-25-2007, 10:55 PM
  4. JSF error+exception
    By Peter in forum SWT / JFace
    Replies: 1
    Last Post: 07-04-2007, 06:29 AM
  5. tomcat exception-error
    By Nick15 in forum Eclipse
    Replies: 2
    Last Post: 05-11-2007, 01:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts