Course List: http://www.c-jump.com/bcc/

Exceptions


  1. Exception
  2. Handling problems within a program
  3. Java Exception Handling
  4. try/catch/finally rules
  5. try/catch/finally rules, cont.
  6. Order of catch blocks
  7. Java Exception Hierarchy
  8. Java Exception Class
  9. The Catch or Specify Requirement
  10. Checked exceptions
  11. Checked exceptions example
  12. Exception class and the instanceof operator
  13. Unchecked exceptions
  14. The Throwable hierarchy
  15. Common checked and unchecked exceptions
  16. Java exception propagation
  17. Two ways to handle checked exceptions
  18. The syntax of the try statement
  19. FileNotFoundException example
  20. Try with resources
  21. Try with resources example
  22. Common Exception methods
  23. The printStackTrace( ) - error output stream
  24. The printStackTrace( ) - standard output stream
  25. multi-catch block
  26. multi-catch block, cont.
  27. multi-catch block, cont
  28. Throwing and re-throwing an exception
  29. Throwing and re-throwing an exception, cont.
  30. throws declaration
  31. catching IOException example
  32. throwing IOException example
  33. throw syntax
  34. unchecked exception example
  35. Throw/rethrow exception example
  36. throw testing
  37. Rethrow example
  38. Defining your own exceptions
  39. Exception chaining
  40. exception chaining example
  41. Java assert statement
  42. AssertionError exception
  43. Exception Handling Techniques
  44. Creating your own exception classes

1. Exception



2. Handling problems within a program



3. Java Exception Handling



4. try/catch/finally rules



5. try/catch/finally rules, cont.



6. Order of catch blocks



7. Java Exception Hierarchy



8. Java Exception Class



9. The Catch or Specify Requirement



10. Checked exceptions



11. Checked exceptions example



12. Exception class and the instanceof operator



13. Unchecked exceptions



14. The Throwable hierarchy



15. Common checked and unchecked exceptions

  • Checked exceptions

    
    ClassNotFoundException
    
    IOException
    
        EOFException
    
        FileNotFoundException
    
    NoSuchMethodException
    
    
  • Unchecked exceptions

    
    ArithmeticException
    
    IllegalArgumentException
    
        NumberFormatException
    
    IndexOutOfBoundsException
    
        ArrayIndexOutOfBoundsException
    
        StringIndexOutOfBoundsException
    
    NullPointerException
    
    InputMismatchException
    
    

16. Java exception propagation



17. Two ways to handle checked exceptions



18. The syntax of the try statement



19. FileNotFoundException example



20. Try with resources



21. Try with resources example



22. Common Exception methods



23. The printStackTrace( ) - error output stream



24. The printStackTrace( ) - standard output stream



25. multi-catch block



26. multi-catch block, cont.



27. multi-catch block, cont



28. Throwing and re-throwing an exception



29. Throwing and re-throwing an exception, cont.



30. throws declaration



31. catching IOException example



32. throwing IOException example



33. throw syntax



34. unchecked exception example



35. Throw/rethrow exception example



36. throw testing



37. Rethrow example



38. Defining your own exceptions



39. Exception chaining



40. exception chaining example



41. Java assert statement



42. AssertionError exception



43. Exception Handling Techniques


  1. Terminate program

  2. Fix error and continue

  3. Log error and continue

     


44. Creating your own exception classes