Содержание
- 2. Consider the following points Understanding Exceptions Hierarchy of Exceptions Types of Exceptions Handling Exceptions Throwing Exceptions
- 3. Understanding Exceptions A program can fail for just about any reason: The code tries to connect
- 4. Hierarchy of Exceptions
- 5. Types of Exceptions
- 6. Runtime Exceptions ArithmeticException – thrown by the JVM when code attempts to divide by zero. ArrayIndexOutOfBoundsException
- 7. Checked Exceptions FileNotFoundException – thrown programmitacally when code tries to reference a file that does not
- 8. Errors ExceptionInInitializerError – thrown by the JVM when a static initializer throws an exception and doesn’t
- 9. Handling Exceptions
- 10. Throwing Exceptions A method that generates an unhandled exception is said to throw an exception: It
- 12. Скачать презентацию