Question: Problem 1: Implement a custom Exception named AuthenticationFailedException In main method take input password from a file named input.txt If the password doesn't get matched
Problem 1: Implement a custom Exception named AuthenticationFailedException In main method take input password from a file named input.txt If the password doesn't get matched with password, AuthenticationFailedException exception will get thrown and you should handle the exception by printing Password is incorrect. If an exception doesn't occur you have to write password in the output.txt file. (Need Java code)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
