Page 15 - Abstract Class, Interface & Struktur Data
P. 15

Throwing Exceptions












             •        When the program detects an error, the program can





                      create an instance of an appropriate exception type and






                      throw it. This is known as throwing an exception. Here is





                      an example
   10   11   12   13   14   15   16   17   18   19   20