Question: Q2. please create Account Class with the following attributes: - String name - String phone - String email Please add throwing an exception if an

Q2. please create Account Class with the following attributes: - String name - String phone - String email Please add throwing an exception if an account object is created with wrong email address. Please create two Account objects with try and catch block. (create three Account objects - two with valid email addresses, one with invalid email address
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
