Question: 1) Create a new Java project and add a class called StrTester. Add a Main method. 2) Write the code in the main method to
1) Create a new Java project and add a class called StrTester. Add a Main method.
2) Write the code in the main method to intentionally throw the following runtime exceptions:
-ArthmeicException
- NumberFormateException (extends from illegalArgumentException)
-ArrayIndexOutOfBoundsException (extends from IndexOutOutOfBoundsException)
-NegativeArraySizeException
-InputMisMatchException (Extends from NoSuchElementException)
-NullPointerException
-And one Error. OutOfMemoryError
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
