Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ah, but the code already uses boolean instead of Boolean.


Whoops, so it does. In which case I have no idea what the solution is referring to.


No serious Java code uses booleans to indicate failure or success. It's on the same level as not using a language's standard variable naming scheme. It's not wrong, but something experienced Java developers working on good code will immediately notice.

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: