> Booleans are not canonical Java as return value
What should you return instead? Or should the method return void and raise an exception on failure?
What should you return instead? Or should the method return void and raise an exception on failure?
You could also go fancy and do it properly functional, so return something like an `Either<User, Error>` instead of throwing an Exception, but that's definitely not canonical Java...
In good Java code you would return either void to indicate side effects or the newly saved user. Exception handling should be done outside the function, because depending on the context you might retry etc.
The main idea is to check if people who say they are very experienced understand conventions and have experience with common Java libraries.