Question: 0 a ) . Write a PositiveNumberException class that can be thrown when a positive number is passed to a method. 1 0 b )
a Write a PositiveNumberException class that can be thrown when a positive number is
passed to a method.
b Write one statement that throws an instance of the exception class in #a
in java
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
