Write an exception class that can be thrown when a negative number is passed to a method.

Question:

Write an exception class that can be thrown when a negative number is passed to a method.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: