![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
As you work with Java programs, you are likely to encounter other
exception instances that you will either have to acknowledge or want to
handle. Such exceptions include, for example, instances of the
NegativeArraySizeException
class, thrown by attempts to create
arrays with a negative number of elements, and instances of the
ArithmeticException
class, thrown by attempts to divide by zero.