What is the need of "creating and throwing an UserdefinedException" when the "Exception" class is already available?
user defined exception is used throwing out(user) own exception..