Java programs to demonstrate the creation of Custom Exception class