home *** CD-ROM | disk | FTP | other *** search
/ Java by Example / jbecd.bin / JBE-CD / JavaByExample / chap30 / lst30_6.txt < prev   
Encoding:
Text File  |  1996-05-01  |  323 b   |  16 lines

  1. Listing 30.6[em]LST30_6.TXT: Using the finally program  block.
  2. try
  3. {
  4.     // The code that may generate an exception goes here.
  5. }
  6. catch (Exception e)
  7. {
  8.     // The code that handles the exception goes here.
  9. }
  10. finally
  11. {
  12.     // The code here is executed after the try or
  13.     // catch blocks finish executing.
  14. }
  15.  
  16.