Chapter Summary

graphics/chsum_icon.gif

The following information was included in this chapter:

  • explanation of the selection statements: if, if-else, switch

  • explanation of the iteration statements: for, while, do-while

  • explanation of the transfer statements: break, continue, return

  • discussion of exception handling and exception classes in the core APIs

  • defining new exception types

  • explanation of the try-catch-finally construct and control flow paths through the construct

  • throwing explicit exceptions with the throw statement

  • using the throws clause to specify checked exceptions

  • explanation of the assert statement

  • using, compiling, and executing assertions