Exception Handling and Assertions


Overview/Description
To enable the learner to handle exceptions and use assertions in Java

Target Audience
Novice programmers with an understanding of basic programming concepts who want to learn Java; programmers proficient in another programming language who want to move to Java; programmers experienced in the Java language who want to take the Sun Certified Programmer for the Java 2 Platform, Standard Edition 1.4 exam

Prerequisites
Knowledge of basic programming principles; experience in another programming or scripting language, such as Visual Basic, C, C++, or JavaScript, would be useful

Expected Duration
100 Minutes

Objectives:

Exception Handling and Assertions

  • use try, catch, and finally blocks to handle exceptions in Java.
  • identify and use the methods of the Throwable class and its subclasses, and define runtime and checked exceptions.
  • write code to throw exceptions in Java.
  • write code to create and handle exceptions in Java.
  • identify the code used to create assertions in Java and the commands used to enable them.
  • code, compile, and enable Java assertions.

  • Course Number: 212091_eng