Murach's Beginning Java 2, SDK 1.4

This chapter shows how to throw and catch exceptions, how to define your own exceptions, and how to debug your code.

Chapter 10 How to handle exceptions and debug code
An introduction to exceptions 306
The exception hierarchy 306
How exceptions are propagated 308
Typical exceptions thrown by the Java API 310
How to handle exceptions 312
How to throw exceptions 312
How to catch exceptions 314
When and how to use conventional error trapping 316
How to throw and define your own exceptions 318
How to throw your own exceptions 318
How to define your own exceptions 320
How to debug your classes without an IDE 322
How to use print statements to identify bugs 322
How to get information about an exception 324
How to print the stack trace to the console 324
Perspective 326
t




Murach's Beginning Java 2

Learn more about this book

Add this book to your cart


See the Java 1.5 edition