lecture-26b - Object Oriented Programming Java - Exceptions...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Object Oriented Programming Java - Exceptions & Assertions
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object Oriented Programming Java - Exceptions & Assertions R.B. Lenin Winter 2006 DA-IICT 2 Exceptions An exception represents an error condition that can occur during the normal course of program execution. When an exception occurs, or is thrown , the normal sequence of flow is terminated. The exception-handling routine is then executed; we say the thrown exception is caught .
Background image of page 2
Object Oriented Programming Java - Exceptions & Assertions R.B. Lenin Winter 2006 DA-IICT 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object Oriented Programming Java - Exceptions & Assertions R.B. Lenin Winter 2006 DA-IICT 4
Background image of page 4
Object Oriented Programming Java - Exceptions & Assertions R.B. Lenin Winter 2006 DA-IICT 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object Oriented Programming Java - Exceptions & Assertions R.B. Lenin Winter 2006 DA-IICT 6 Catching Exceptions We can increase our programs’ reliability and robustness if we catch the exceptions ourselves using error recovery routines we develop. One way to do this is to wrap the statements that may throw an exception with the try- catch control statement.
Background image of page 6
Java - Exceptions & Assertions R.B. Lenin Winter 2006 DA-IICT 7
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 21

lecture-26b - Object Oriented Programming Java - Exceptions...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online