Write a program in java for a user defined exception named as Illegal Age Exception. If the age entered by the user is less than 18 or greater than 60, then the program should raise a user defined exception which is explicitly handled by the code.
Vaibhav_5
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
rubberman
commented:
Nicely put!
+13
JamesCherrill
commented:
I could't have put it better myself.
+15
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.