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

Declaring Exceptions












             •        Every method must state the types of checked exceptions it





                      might throw. This is known as declaring exceptions.





             •        public void myMethod() throws IOException






             •        public void myMethod() throws IOException, OtherException
   9   10   11   12   13   14   15   16   17   18   19