Define class EmailId with members, username, domainId and password. Define default and
parameterized constructors. Accept values from the command line and create a date object. Throw user
defined exceptions – “InvalidUsernameException” or “InvalidPasswordException” if the uaername and
password are invalid. If the date is valid, display message “Valid Email Id”.
Use Offline IDE like Sublime, VScode , IntelliJ to run this code.