Hi guys.
I have two simple question for you, this is about programmer defined exception. (this source code come from thomas wu book, OOP introduction),
firstly,
is it okay for not write throws IllegalArgumentException in methode setPassword, as I know this methode throw exception?
problem.jpg
secondly,
I have programmer defined Exception here, and in the AgeInputException Constactore there's no throws IllegalArgumentException.
is it okay?
ask.jpg