Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...

Start Learning Now

Our free lessons will get you started (Flash® 10 required).
Get immediate access to our entire library.

Sign up for Educator.com

Features Overview

  • Get on-demand access to our complete library
  • Search and jump to exactly what you need to learn
  • Track your progress
  • Download practice and lesson files
  • *Ask questions and get answers from our community & instructors

Exception Handling

  • An error that arises through mistakes in coding or through incorrect data entered by the user is called an “exception”
  • Such errors that are encountered while a program runs are said to be “thrown”
  • Programmers try to anticipate these errors and either prevent or solve them before they happen
  • Java uses the “Try... Catch...” process in order to try running a block of code to test for errors and then catch an error if it occurs
  • All “Try” statements must be followed by at least one “Catch” statement or a “Finally” statement
  • Exceptions that occur that are not handled by a “Catch” block of code or a “Finally” block will cause a program to terminate

Exception Handling

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

AP Computer Science: Java