Week 7 B
Week 7 B
It would
throw the user defined exception NegativeAgeException if the age is assigned a negative
number.
NegativeAgeException(String s)
super(s);
if(age<0)
else
try{
validate(23);
validate(17);
validate(-12);
catch(Exception m)
finally {