Results 1 to 4 of 4

Thread: difference b/w Unchecked and checked Exception

Hybrid View

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

    difference b/w Unchecked and checked Exception

    difference b/w Unchecked and checked Exception


  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    42

    Re: difference b/w Unchecked and checked Exception

    Checked exception is an exception that you have to handle in your program.
    EG: IOException

    Unchecked exceptions are not required to be handled in the program
    EG: NullPointerException


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

    Re: difference b/w Unchecked and checked Exception

    Checked Exceptions are checked by the compiler during the compile time so if you have not handled (using try/catch or throws) the checked exception you wud not be able to complie the class. Ex:IOException
    Unchecked exceptions are the exception that are not checked by the complier and will be thrown only at run time by the JVM itself for ex: NullPointerException, ArrayIndexOutOfBounds exception

    -hope it helps.


  4. #4
    Junior Member
    Join Date
    Dec 2006
    Answers
    12

    Re: difference b/w Unchecked and checked Exception

    The exceptions which occur outside try block and remain undetected are known as unchecked exceptions.If such kind of exception occurs then the function containing the exception gets terminated immediately by calling abort() function.


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