Results 1 to 2 of 2
  1. #1
    jmohandos304 is offline Senior Member
    Join Date
    Apr 2014
    Posts
    122
    Rep Power
    0

    Default Basis for making exception as checked or unchecked

    I know checked exception need to be checked at compile time and runtime exception need not be checked at compile time.

    My question is not related to the definition.

    The question is on what basis have they selected that FileNotFound exception is a checked exception and NullPointerException is an unchecked exception? Is it the random wish of the creator or is there reason behind why something is selected as checked exception and something as unchecked?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: Basis for making exception as checked or unchecked

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Checked vs Unchecked Exceptions
    By jim829 in forum New To Java
    Replies: 1
    Last Post: 05-11-2014, 07:31 PM
  2. Checked Exception
    By deeevo in forum New To Java
    Replies: 1
    Last Post: 06-13-2013, 09:58 AM
  3. UnChecked Exception
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-18-2007, 07:06 PM
  4. Checked Exception
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-18-2007, 06:59 PM

Posting Permissions

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