Write an application that throws and catches an ArithmeticException when you attempt to take thesquare root of a negative value. Prompt the user for an input value and try the Math.sqrt() method onit. The application either displays the square root or catches the thrown Exception and displays anappropriate message
NB:ALSO SHOW OUTPUT
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here