Institute of Computer Science
  1. Courses
  2. 2019/20 spring
  3. Object-Oriented Programming (Narva College) (LTAT.NR.003)
ET
Log in

Object-Oriented Programming (Narva College) 2019/20 spring

  • Home
  • Materials
  • Grading
  • Java Glossary
  • Cheat sheet (S1-S6)
  • Source Example
  • Links

Chapter 10

Exceptions

Objectives:

After completing the chapter, you can:

  • get an overview of exceptions and exception handling;
  • distinguish exception types: Error (fatal) vs. Exception (nonfatal);
  • describe the classes Exception and Throwable;
  • declare exceptions in a method header;
  • improve programs adding try-catch blocks for catching and handling exceptions;
  • use the finally clause in a try-catch block;
  • write own defined exception classes.

Topics

  • 10.1 Introduction
  • 10.2 Throw exception
  • 10.3 Catch exceptions
  • 10.4 Exception class hierarchy, checked and unchecked exceptions
  • 10.5 Keyword Finally
  • 10.6 New exception classes
  • 10.7. Useful tips
  • 10.8 Tasks

Alternative materials

  • in English: H. Schildt.‎ Java - The Complete Reference: Chapter: 10
  • in Estonian: here
  • in Russian: Г. Шилдт. Java 8. Полное руководство: Chapter: 10

  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment