Question: Assume you have a java class AutoFactory with two static methods called shutdown and reset . Neither method has any parameters. The shutdown method may
Assume you have a java class AutoFactory with two static methods called shutdown and reset. Neither method has any parameters. The shutdown method may throw a ProductionInProgressException. Please write write code that invokes the shutdown method. If a ProductionInProgressException is thrown, your code should then invoke the reset method.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
