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