Unchecked exceptions are checked at compile-time rather than runtime- Core Java

Q.  Unchecked exceptions are checked at compile-time rather they are checked at runtime.
- Published on 19 Oct 15

a. True
b. False

ANSWER: False
 

    Discussion

  • Himesh   -Posted on 13 Jan 24
    An unchecked exceptions are caught at runtime, while checked exceiptions are caught at compile time.
    Given statement is false because it states that unchecked exceptions are checked at compile time(wrong)
  • shweta   -Posted on 03 Jan 18
    Unchecked exceptions are checked at run-time.
  • Nirja Shah   -Posted on 20 Aug 15
    The above statement is false because an unchecked exception are checked at run-time and never at the compile-time.
    The program is throwing an unchecked exception and even if you dont handle/declare that exception the program will not give a compilation error.
    These exceptions are also a direct sub class of RuntimeException class.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)