Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please do this in java language exepition andling After thie Create an object of class RunTimeException and an object of class IOException Create two methods,
please do this in java language
exepition andling After thie Create an object of class RunTimeException and an object of class IOException Create two methods, RunTimeExceptionTest and IOExceptionTest Your first methods receives your first object and throw it You second method receive your second object and throw it What is the error, read it Fix the error by adding throws l1OException at the end Create a method IOExceptoSubclassTest Inside this method throw new object of FileNotFoundException Fix the error of this method using the same way you fixed it for IOException Now instead of adding throws FileNotFoundException, add throws IOException, what happens of the main and the second methods signature before curly braces Create 4 methods m1, m2, m3, m4 inside your main call m1 and inside m1 call m2 and inside m2 call m3 and inside m3 call m4 Inside m4 throw an object of Run TimeException, Run your application and check the error, can you see stack structure? Inside your m throw an object of IOException and add throws to the signature of the method Why you stilt have a problem? Solve the problem by adding throws to all methods Instead of object of 1OE xception, throw an object of FileNotF oundE xception and add throws FileNotF oundException only to m4Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started