Practice

Account

<aside> 🚧 Exception Handling (Low Difficulty)

</aside>

Create the following classes that simply extend the Exception class:

In the Account class, code a method called createAccount that takes a username, age, password, and confirmPassword as parameters.

In createAccount, throw an:

In your main method (within the Account class):